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:
00177681
Views:
37
Hi Christof,
>
>>That's twice in one day I looked in what I *thought* was the right place, but wasn't.
>
>Since I've installed the entire MSDN on my harddisk, I just search across all articles. *g*

Me, too, but I instinctively reach for the SDK first (which is also entirely loaded on my harddisk). As far as the Windows Controls help went, I simply didn't think of the MSDN.:-)

>>Good point, but in this case don't you think _WnTohWnd(_Wontop()) might be better?
>
>But we need the caption of the top level form. _WOnTop() would return the handle of the current form. And if there's a form inside the top level form?

In my design methodology only data input/edit forms are modeless, everthing else is modal. If it was call from a form (and I wanted to pass the form's window handle), the form would be modal and I think _Wontop() would provide the correct value to convert. Otherwise (since I mostly deal with MDI apps) I'd just provide the window handle of the main VFP window.

>>Even if you set .LockScreen to .T. don't the captions change?
>
>Not in my experience. After all _WFindTitl() doesn't take much time to execute and usually the caption is restored within a millisecond or so.

Hmm, in development, at least, in VFP 6.0 .LockScreen = .T. doesn't prevent the caption from changing either when called from within a running form or the command window for me. If, when .LockScreen is true, if you bring another form in front of the window, the original form will retain the image of the one brought in front of it. The title bar, however, doesn't suffer from this. It appears the way it should when the other form is taken away.
George

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

Click here to load this message in the networking platform