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:
00676999
Views:
11
This message has been marked as the solution to the initial question of the thread.
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).
George

Ubi caritas et amor, deus ibi est
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform