Commit before breaking everything
[matches/honours.git] / research / transmission_spectroscopy / TOF / Win32++ / samples / GDIPlus / src / FrameApp.h
1 //////////////////////////////////////////////////\r
2 // FrameApp.h\r
3 \r
4 #ifndef FRAMEAPP_H\r
5 #define FRAMEAPP_H\r
6 \r
7 #include "Mainfrm.h"\r
8 \r
9 \r
10 // Declaration of the CFrameApp class\r
11 class CFrameApp : public CWinApp\r
12 {\r
13 public:\r
14         CFrameApp();\r
15         virtual ~CFrameApp();\r
16         virtual BOOL InitInstance();\r
17         CMainFrame& GetMainFrame() { return m_Frame; }\r
18 \r
19 private:\r
20         CMainFrame m_Frame;\r
21 };\r
22 \r
23 \r
24 // a useful function that returns a reference to the CFrameApp object\r
25 inline CFrameApp& GetFrameApp() { return *((CFrameApp*)GetApp()); }\r
26 \r
27 \r
28 #endif // define FRAMEAPP_H\r
29 \r

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