메뉴 알림
섹션 내용
- WM_COMMAND
- WM_CONTEXTMENU
- WM_ENTERMENULOOP
- WM_EXITMENULOOP
- WM_GETTITLEBARINFOEX
- WM_MENUCOMMAND
- WM_MENUDRAG
- WM_MENUGETOBJECT
- WM_MENURBUTTONUP
- WM_NEXTMENU
- WM_UNINITMENUPOPUP
예제
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;
}
GitHub의 Windows 클래식 샘플 에서 가져온 예제입니다.