Click to See Complete Forum and Search --> : How to catch vbMsgBoxHelpButton in the Message Box


chem1
January 16th, 2000, 11:18 PM
Hello there,
can anyone tell me how can I catch the Help Button on a message box.MSDN says MsgBox does not return this value,
Thankx in advance.....

Lothar Haensler
January 17th, 2000, 01:18 AM
from the docs for MEssagebox API:
". When the user clicks the Help button or presses F1, the system sends a WM_HELP message to the owner."
Thus, you have to subclass the owner window and trap the WM_HELP message.