|
Overview |
|
|
|
Group |
|
|
|
Quick Info
Windows NT
| Yes
| Win95
| Yes
| Win32s
| Yes
| Import Library
| gdi32.lib
| Header File
| wingdi.h
| Unicode
| No
| Platform Notes
| Windows 95: 16-bit coordinates only
|
|
|
OffsetViewportOrgEx
The OffsetViewportOrgEx function modifies the viewport origin for a device context using the
specified horizontal and vertical offsets.
BOOL OffsetViewportOrgEx(
HDC hdc,
| // handle to device context
| int nXOffset,
| // horizontal offset
| int nYOffset,
| // vertical offset
| LPPOINT lpPoint
| // pointer to structure receiving original origin
| );
|
|
Parameters
hdc
Identifies the device context.
nXOffset
Specifies the horizontal offset, in device units.
nYOffset
Specifies the vertical offset, in device units.
lpPoint
Points to a POINT structure. The previous viewport origin, in device units, is placed in this
structure. If lpPoint is NULL, the previous viewport origin is not returned.
Return Values
If the function succeeds, the return value is nonzero.
If the function fails, the return value is zero.
Remarks
The new origin is the sum of the current origin and the horizontal and
vertical offsets.
See Also
GetViewportOrgEx, OffsetWindowOrgEx, SetViewportOrgEx
Related Links
Software for Delphi and C++ Builder developers
Software for Visual Studio .NET developers
Software for Visual Basic 6 developers
Delphi Tips&Tricks
MegaDetailed.NET
More Online Helps
Win32 Programmer's Reference (win32.hlp)
Win32 Multimedia Programmer's Reference (mmedia.hlp)
OLE Programmer's Reference (ole.hlp)
Microsoft Windows Pen API Programmer's Reference (penapi.hlp)
Microsoft Windows Sockets 2 Reference (sock2.hlp)
Microsoft Windows Telephony API (TAPI) Programmer's Reference (tapi.hlp)
Unix Manual Pages
|