Processing Notification Messages
A property sheet sends WM_NOTIFY messages to retrieve information from the pages and to notify the pages of user actions. The lParam parameter of the message is the address of an NMHDR structure, which contains the handle of the property sheet dialog box, the handle of the page dialog box, and a notification code. The page must respond to some notification messages by setting the DWL_MSGRESULT value of the page to either TRUE or FALSE. The following example is a code fragment from the dialog box procedure for a page. It shows how to process the PSN_HELP notification message. case WM_NOTIFY:switch (((NMHDR FAR *) lParam)->code) {
case PSN_HELP:
{
char szBuf[FILE_LEN]; // buffer for name of help file
// Display help for the font properties page.
LoadString(g_hinst, IDS_HELPFILE, &szBuf, FILE_LEN)
WinHelp(((NMHDR FAR *) lParam)->hwndFrom, &szBuf,
HELP_CONTEXT, IDH_FONT_PROPERTIES);
break;
}
.
. // Process other property sheet notifications here.
.
}
- Software for developers
-
Delphi Components
.Net Components
Software for Android Developers - More information resources
-
MegaDetailed.Net
Unix Manual Pages
Delphi Examples - Databases for Amazon shops developers
-
Amazon Categories Database
Browse Nodes Database