Skip to content

Commit

Permalink
add AtlDialogApp sample 2
Browse files Browse the repository at this point in the history
  • Loading branch information
katahiromz committed Sep 19, 2023
1 parent 199d667 commit 523f54f
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion samples/AtlDialogApp/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,21 @@ class CMainWindow : public CDialogImpl<CMainWindow, CWindow>
return 0;
}

BOOL OnOK()
{
// TODO: Do something
return TRUE;
}

LRESULT OnCommand(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
{
switch (LOWORD(wParam))
{
case IDOK:
EndDialog(IDOK);
if (OnOK())
{
EndDialog(IDOK);
}
break;
case IDCANCEL:
EndDialog(IDCANCEL);
Expand Down

0 comments on commit 523f54f

Please sign in to comment.