Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
DrawIcon
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Titre:
Divers
Thread ID:
00676876
Message ID:
00676999
Vues:
10
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform