GetWindowRect() Returns TRUE with Desktop Window HandleLast reviewed: May 1, 1995Article ID: Q129598 |
The information in this article applies to:
Under Windows NT and Windows 95, GetWindowRect() returns FALSE (to indicate failure) if the desktop window handle is used. Under Win32s, GetWindowRect() returns TRUE if the desktop window handle is used, however, the RECT structure is not correctly filled in. On Win32s, GetWindowRect() returns TRUE unconditionally because the 16-bit Windows GetWindowRect() has no return value. Therefore, before calling GetWindowRect() on Win32s, you should first check that the window handle is not the desktop window handle.
|
Additional reference words: 1.20 GetDesktopWindow HWND_DESKTOP
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |