Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How can I format a disk
Message
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00177270
Message ID:
00177584
Views:
34
Hi Christof,

>>You've been reading the MSDN library again, haven't you?:-)
>
>How do you know. *bg*

It's a habit that I should get.:-) That's twice in one day I looked in what I *thought* was the right place, but wasn't. In this case it was the SDK, in the other I was trying to figure out how to remove all the nodes of a TreeView control. The Windows Control help doesn't have a thing on it. Then my friend David Frankenbach (thanks again, David) told me to look in the library. Bingo!

>>You can get the main VFP window from foxtools with MainhWnd().
>
>I always forget about this function. Old habbits die hard. :)

See above < rbg >.

>>However, if an SDI app is calling the dialog, _WhTohWnd(_WFindTitl(ThisForm.Caption)) may be required.
>
>You are right, otherwise chances are high that the dialog won't appear. If you have several forms with the same caption, you might have to change the caption of the form to SYS(3), get the HWND and then restore the old caption.
>
Good point, but in this case don't you think _WnTohWnd(_Wontop()) might be better? Even if you set .LockScreen to .T. don't the captions change? Since the active form should be the same as _Wontop() returns, would that avoid that?
George

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

Click here to load this message in the networking platform