Commit before breaking everything
[matches/honours.git] / research / transmission_spectroscopy / TOF / Win32++ / WCE samples / Dialog / MyDialog.cpp
1 \r
2 #include "MyDialog.h"\r
3 #include "resource.h"\r
4 \r
5 \r
6 \r
7 CMyDialog::CMyDialog(UINT nResID, CWnd* pParent)\r
8         : CDialog(nResID, pParent)\r
9 {\r
10 }\r
11 \r
12 CMyDialog::~CMyDialog()\r
13 {\r
14 }\r
15 \r
16 \r
17 BOOL CMyDialog::OnInitDialog()\r
18 {\r
19         // This function is called before the dialog is displayed.\r
20 \r
21 \r
22         //Set the Icon\r
23         SetIconLarge(IDW_MAIN);\r
24         SetIconSmall(IDW_MAIN);\r
25 \r
26         return true;\r
27 }\r
28 \r
29 void CMyDialog::OnOK()\r
30 {\r
31         ::MessageBox(NULL, TEXT("DONE Button Pressed.  Program will exit now."), TEXT("Button"), MB_OK);\r
32         CDialog::OnOK();\r
33 }\r
34 \r
35 INT_PTR CMyDialog::DialogProc(UINT uMsg, WPARAM wParam, LPARAM lParam)\r
36 {\r
37 // Add any messages to be handled inside the switch statement\r
38 \r
39 \r
40 //      switch (uMsg)\r
41 //      {\r
42 //\r
43 //      } // switch(uMsg)\r
44         \r
45         return DialogProcDefault(uMsg, wParam, lParam);\r
46         \r
47 } // INT_PTR CALLBACK DialogProc(...)\r
48 \r
49 \r

UCC git Repository :: git.ucc.asn.au