DGetScreenPlacement | 31
DGetScreenPlacement
Purpose Use
DGetScreenPlacement
to return the x,y position of the
screen in Windows space.
Syntax
DWORD DGetScreenPlacement (hdc, wScreenNumber,
lpptPoint)
Return value
DWORD –
zero (0) if function completed successfully;
otherwise, operating system error code.
Structure This code fragment defines the
POINT
structure.
typedef struct
{
LONG x;
LONG y;
} POINT;
Parameter Type
Name
Description
HDC
hdc
Handle to the display-
device context.
UWORD
wScreenNumber
Target screen number
(zero-based).
POINT FAR *
ptPoint
Pointer to a Windows
POINT
structure.
It is filled in with the
placement of the screen.
This function returns an error for unattached displays.
Содержание Dome DX/PCI
Страница 6: ......