]>
Commit | Line | Data |
---|---|---|
1 | ///////////////////////////////////////////////////////////////////////////// | |
2 | // Name: mfctest.h | |
3 | // Purpose: Sample to demonstrate mixing MFC and wxWidgets code | |
4 | // Author: Julian Smart | |
5 | // Id: $Id$ | |
6 | // Copyright: (c) Julian Smart | |
7 | // Licence: wxWindows licence | |
8 | ///////////////////////////////////////////////////////////////////////////// | |
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: | |
21 | CMainWindow(); | |
22 | ||
23 | //{{AFX_MSG( CMainWindow ) | |
24 | afx_msg void OnPaint(); | |
25 | afx_msg void OnAbout(); | |
26 | afx_msg void OnTest(); | |
27 | //}}AFX_MSG | |
28 | ||
29 | DECLARE_MESSAGE_MAP() | |
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: | |
48 | BOOL InitInstance(); | |
49 | int ExitInstance(); | |
50 | ||
51 | // Override this to provide wxWidgets message loop | |
52 | // compatibility | |
53 | BOOL PreTranslateMessage(MSG *msg); | |
54 | BOOL OnIdle(LONG lCount); | |
55 | }; | |
56 | ||
57 | ///////////////////////////////////////////////////////////////////////////// | |
58 | ||
59 | #endif // __MFCTEST_H__ |