Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

Menu Notifications

In This Section

Example

BOOL AboutDlg (
 HWND hDlg, 
 UINT message, 
 WPARAM wParam, 
 LPARAM lParam)
{
 BOOL bRet = FALSE;
 
 switch (message) 
 {
 case WM_INITDIALOG:
 bRet = TRUE;
 break;

 case WM_COMMAND:
 if (wParam == IDOK ||
 wParam == IDCANCEL) 
 {
 EndDialog(hDlg, TRUE);
 bRet = TRUE;
 }
 break;
 }

 return bRet;
}

Example taken from Windows classic samples on GitHub.


Feedback

Was this page helpful?

Additional resources