-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathAboutDlg.h
34 lines (26 loc) · 950 Bytes
/
AboutDlg.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
// aboutdlg.h : interface of the CAboutDlg class
//
/////////////////////////////////////////////////////////////////////////////
#if !defined(AFX_ABOUTDLG_H__4ED938F4_3688_48AB_AAEF_220EEC36DAF1__INCLUDED_)
#define AFX_ABOUTDLG_H__4ED938F4_3688_48AB_AAEF_220EEC36DAF1__INCLUDED_
class CAboutDlg : public CDialogImpl<CAboutDlg>
{
public:
enum { IDD = IDD_ABOUTBOX };
BEGIN_MSG_MAP(CAboutDlg)
MESSAGE_HANDLER(WM_INITDIALOG, OnInitDialog)
COMMAND_ID_HANDLER(IDOK, OnCloseCmd)
COMMAND_ID_HANDLER(IDCANCEL, OnCloseCmd)
END_MSG_MAP()
LRESULT OnInitDialog(UINT /*uMsg*/, WPARAM /*wParam*/, LPARAM /*lParam*/, BOOL& /*bHandled*/)
{
CenterWindow(GetParent());
return TRUE;
}
LRESULT OnCloseCmd(WORD /*wNotifyCode*/, WORD wID, HWND /*hWndCtl*/, BOOL& /*bHandled*/)
{
EndDialog(wID);
return 0;
}
};
#endif // !defined(AFX_ABOUTDLG_H__4ED938F4_3688_48AB_AAEF_220EEC36DAF1__INCLUDED_)