// Узнаём ширину и высоту экрана.
HPS Screen = WinGetScreenPS (HWND_DESKTOP);

ULONG Width  = 0; DevQueryCaps (GpiQueryDevice (Screen), CAPS_WIDTH,  1, &Width);
ULONG Height = 0; DevQueryCaps (GpiQueryDevice (Screen), CAPS_HEIGHT, 1, &Height);

WinReleasePS (Screen), Screen = NULLHANDLE;

