]>
Commit | Line | Data |
---|---|---|
7818a75c JS |
1 | ///////////////////////////////////////////////////////////////////////////// |
2 | // Name: mfctest.h | |
be5a51fb | 3 | // Purpose: Sample to demonstrate mixing MFC and wxWidgets code |
7818a75c | 4 | // Author: Julian Smart |
7818a75c JS |
5 | // Copyright: (c) Julian Smart |
6 | // Licence: wxWindows licence | |
7 | ///////////////////////////////////////////////////////////////////////////// | |
bbf1f0e5 KB |
8 | |
9 | #ifndef __MFCTEST_H__ | |
10 | #define __MFCTEST_H__ | |
11 | ||
12 | ///////////////////////////////////////////////////////////////////////////// | |
13 | ||
14 | // CMainWindow: | |
15 | // See hello.cpp for the code to the member functions and the message map. | |
16 | // | |
17 | class CMainWindow : public CFrameWnd | |
18 | { | |
19 | public: | |
2f6c54eb | 20 | CMainWindow(); |
bbf1f0e5 | 21 | |
2f6c54eb VZ |
22 | //{{AFX_MSG( CMainWindow ) |
23 | afx_msg void OnPaint(); | |
24 | afx_msg void OnAbout(); | |
25 | afx_msg void OnTest(); | |
26 | //}}AFX_MSG | |
bbf1f0e5 | 27 | |
2f6c54eb | 28 | DECLARE_MESSAGE_MAP() |
bbf1f0e5 KB |
29 | }; |
30 | ||
31 | // A dummy CWnd pointing to a wxWindow's HWND | |
32 | class CDummyWindow: public CWnd | |
33 | { | |
34 | public: | |
35 | CDummyWindow(HWND hWnd); | |
36 | ~CDummyWindow(void); | |
37 | }; | |
38 | ||
39 | ///////////////////////////////////////////////////////////////////////////// | |
40 | ||
41 | // CTheApp: | |
bbf1f0e5 KB |
42 | // |
43 | class CTheApp : public CWinApp | |
44 | { | |
45 | public: | |
2f6c54eb | 46 | BOOL InitInstance(); |
bbf1f0e5 KB |
47 | int ExitInstance(); |
48 | ||
be5a51fb | 49 | // Override this to provide wxWidgets message loop |
bbf1f0e5 KB |
50 | // compatibility |
51 | BOOL PreTranslateMessage(MSG *msg); | |
52 | BOOL OnIdle(LONG lCount); | |
53 | }; | |
54 | ||
55 | ///////////////////////////////////////////////////////////////////////////// | |
56 | ||
57 | #endif // __MFCTEST_H__ |