Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Messagebox API
Message
De
14/02/2001 13:11:02
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Titre:
Messagebox API
Divers
Thread ID:
00475884
Message ID:
00475884
Vues:
133
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform