Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Messagebox API
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Titre:
Divers
Thread ID:
00475884
Message ID:
00476300
Vues:
44
>>>WM_HELP, is sent if ON('KEY', 'F1') = 'HELP'. If it's own error dialogs, then VFP wouldn't necessarily be using WM_HELP. I can't find what message VFP sends to activate it's help, but pressing F1 does generate a WM_HELP message that VFP processes if no dialog is present.
>>
>>I couldn't get VFP to do this. Were you looking at the main window or one of VFP's child windows (or one of its extraneous windows)?
>
>Sorry, I missed this. I wasn't looking at the window. I was looking at the process.

Okay, now I get it. I finally saw what you saw using a different time and space orientation. :-)

The problem seems to be that MessageBoxEx sends its WM_HELP message to the owner window, not the owner thread/process. The VFP main window's WinProc does not know what to do with that message. You would have to write something to hook into the WinProc (VB or VC++) and pass that along to the thread in order to get the behavior of bringing up the help.

Thanks for sticking with me George!
Larry Miller
MCSD
LWMiller3@verizon.net

Accumulate learning by study, understand what you learn by questioning. -- Mingjiao
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform