]> git.saurik.com Git - wxWidgets.git/blame_incremental - samples/mfc/mfctest.h
Add wxAnyScrollHelperBase to reduce code duplication in wxVarScrollHelperBase.
[wxWidgets.git] / samples / mfc / mfctest.h
... / ...
CommitLineData
1/////////////////////////////////////////////////////////////////////////////
2// Name: mfctest.h
3// Purpose: Sample to demonstrate mixing MFC and wxWidgets code
4// Author: Julian Smart
5// Copyright: (c) Julian Smart
6// Licence: wxWindows licence
7/////////////////////////////////////////////////////////////////////////////
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//
17class CMainWindow : public CFrameWnd
18{
19public:
20 CMainWindow();
21
22 //{{AFX_MSG( CMainWindow )
23 afx_msg void OnPaint();
24 afx_msg void OnAbout();
25 afx_msg void OnTest();
26 //}}AFX_MSG
27
28 DECLARE_MESSAGE_MAP()
29};
30
31// A dummy CWnd pointing to a wxWindow's HWND
32class CDummyWindow: public CWnd
33{
34 public:
35 CDummyWindow(HWND hWnd);
36 ~CDummyWindow(void);
37};
38
39/////////////////////////////////////////////////////////////////////////////
40
41// CTheApp:
42//
43class CTheApp : public CWinApp
44{
45public:
46 BOOL InitInstance();
47 int ExitInstance();
48
49 // Override this to provide wxWidgets message loop
50 // compatibility
51 BOOL PreTranslateMessage(MSG *msg);
52 BOOL OnIdle(LONG lCount);
53};
54
55/////////////////////////////////////////////////////////////////////////////
56
57#endif // __MFCTEST_H__