Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
DrawIcon
Message
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Title:
Miscellaneous
Thread ID:
00676876
Message ID:
00677124
Views:
22
Just in case you did not know it already - you are 'GOOD!'

Thanks!

Troy

>Troy,
>
>Just a SWAG, but top-level forms are of a different class than the normal in screen or in top-level form. With those forms, the window only has one window handle, which covers the entire window. A top-level form, however, has two parts: the frame, and the client area. Each has its own distinct window handle. You can retrieve the client area window handle like this
DECLARE INTEGER FindWindowEx IN Win32API;
>    INTEGER hWnd, INTEGER hWndAfter,;
>    STRING @lpzClass, STRING @lpzWindow
>lnhwnd = FindWindowEx(ThisForm.hWnd, 0, 0, 0)
Try using this window handle to get the device context, rather than the window handle of the form (ThisForm.hWnd).
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform