Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Hwnd control
Message
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Title:
Miscellaneous
Thread ID:
00436707
Message ID:
00436709
Views:
26
>Is there a poss. use the gdi32 with forms instead off hwnd-control.
>I would like to write a wrapper around the gdi32 calls.

I'm not sure what you mean here, but VFP forms have their own window handle. There are two ways to retrieve it: 1.) Via API calls (which can be tricky); 2.) Foxtools: lnhwnd = _WhTohWnd(_WFindTitl(Form.Caption)). The latter, of course, requires that the library be loaded. Second, both it and the API call method can return the wrong value if forms with identical captions are present.
George

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

Click here to load this message in the networking platform