The Help Button
You can display a Help button in any of the common dialog boxes by setting a
SHOWHELP value in the Flags
member of the initialization structure for the dialog box. If you display the
Help button, you must process the user's request for help. The processing can
be done either in one of your application's window procedures or in a hook
procedure for the dialog box. Typically, you would process the request for help by
calling the WinHelp
To process help messages in one of your window procedures, you must get a
message identifier for the string defined by the HELPMSGSTRING
value and identify the window to receive messages. To get the message
identifier, specify HELPMSGSTRING as the parameter in a call to the RegisterWindowMessage
function. When you create the common dialog box, use the hwndOwner
member of the dialog box initialization structure to identify the window that
is to receive the messages. The dialog box procedure sends the message to the
window procedure whenever the user chooses the Help button.
To process help messages in a hook procedure, you should process the WM_COMMAND
message. The hook procedure provides help if the wParam
parameter of this message indicates that the user pressed the Help button.
The identifier of the Help button is the pshHelp
constant defined in the DLGS.H file.
Hook procedures for the Explorer-style Open and Save As common dialog boxes do
not receive WM_COMMAND messages for the Help button. Instead, the dialog box
sends a CDN_HELP
notification message to the hook procedure when the Help button is clicked.
- Software for developers
Software for Android Developers
- More information resources
Unix Manual Pages
- Databases for Amazon shops developers
Amazon Categories Database
Browse Nodes Database