]> git.saurik.com Git - wxWidgets.git/blame - samples/mfc/mfctest.h
gcc warning
[wxWidgets.git] / samples / mfc / mfctest.h
CommitLineData
7818a75c
JS
1/////////////////////////////////////////////////////////////////////////////
2// Name: mfctest.h
3// Purpose: Sample to demonstrate mixing MFC and wxWindows code
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//
18class CMainWindow : public CFrameWnd
19{
20public:
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
33class 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//
45class CTheApp : public CWinApp
46{
47public:
2f6c54eb 48 BOOL InitInstance();
bbf1f0e5
KB
49 int ExitInstance();
50
51 // Override this to provide wxWindows message loop
52 // compatibility
53 BOOL PreTranslateMessage(MSG *msg);
54 BOOL OnIdle(LONG lCount);
55};
56
57/////////////////////////////////////////////////////////////////////////////
58
59#endif // __MFCTEST_H__