Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Help with MessageBoxIndirect API
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01070654
Message ID:
01071640
Views:
31
>> I am just half guessing here, I havent seen you MessageBoxIndirect sample or your Extended MessageBox Class. I guess the Extended MessageBox Class uses the undocumented MessageBoxTimeout API function for timed MessageBoxes, so you cant have a user icon there.

Take a look at C++ and C# code samples at the same page. Especially C#, it can be easily converted to similar VFP code.

* * *
There's nothing too much undocumented behind the Extended MessageBox code sample. It is based on the fact that VFP Timer object keeps ticking behind the MessageBox dialog.

The dialog is supposed to halt any FoxPro activity while it lasts. Not with the Timer, so I just hook some API calls to its very first Timer event. Those calls locate the dialog's window and make required changes.
Previous
Reply
Map
View

Click here to load this message in the networking platform