]>
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: | |
43 | // See hello.cpp for the code to the InitInstance member function. | |
44 | // | |
45 | class CTheApp : public CWinApp | |
46 | { | |
47 | public: | |
2f6c54eb | 48 | BOOL InitInstance(); |
bbf1f0e5 KB |
49 | int ExitInstance(); |
50 | ||
be5a51fb | 51 | // Override this to provide wxWidgets message loop |
bbf1f0e5 KB |
52 | // compatibility |
53 | BOOL PreTranslateMessage(MSG *msg); | |
54 | BOOL OnIdle(LONG lCount); | |
55 | }; | |
56 | ||
57 | ///////////////////////////////////////////////////////////////////////////// | |
58 | ||
59 | #endif // __MFCTEST_H__ |