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