Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Messagebox API
Message
From
14/02/2001 13:11:02
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Title:
Messagebox API
Miscellaneous
Thread ID:
00475884
Message ID:
00475884
Views:
128
Hi

I am trying to use the API function MessageBoxEx so that I can have a 'help' button on messageboxes.

According to the SDK, when the help button is clicked MessageBoxEx sends a WM_HELP message to it's owner, whose HWND is the first parameter to MessageBoxEx. From the SDK on WM_HELP "Indicates that the user pressed the F1 key". Seems like the behaviour desired.

Whatever I do, VFP does nothing, the way it does nothing if I press F1 with a standard messagebox active.

I have tried sending _vfp.hwnd, _screen.hwnd (I was surprised when they were different.., and yes I am using VFP7 but it still holds for VFP6) and sending 0 to indicate no owner window.

Does anyone know - can VFP respond to this message? Is there a way of testing that it is being sent to the right place? Does anyone have a better idea???

Cheers,

Stuart

Stuart.Dunkeld.NOSPAM@eastsussexcc.gov.uk
Next
Reply
Map
View

Click here to load this message in the networking platform