mfctest.h 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  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. #ifndef __MFCTEST_H__
  9. #define __MFCTEST_H__
  10. /////////////////////////////////////////////////////////////////////////////
  11. // CMainWindow:
  12. // See hello.cpp for the code to the member functions and the message map.
  13. //
  14. class CMainWindow : public CFrameWnd
  15. {
  16. public:
  17. CMainWindow();
  18. //{{AFX_MSG( CMainWindow )
  19. afx_msg void OnPaint();
  20. afx_msg void OnAbout();
  21. afx_msg void OnTest();
  22. //}}AFX_MSG
  23. DECLARE_MESSAGE_MAP()
  24. };
  25. // A dummy CWnd pointing to a wxWindow's HWND
  26. class CDummyWindow: public CWnd
  27. {
  28. public:
  29. CDummyWindow(HWND hWnd);
  30. ~CDummyWindow(void);
  31. };
  32. /////////////////////////////////////////////////////////////////////////////
  33. // CTheApp:
  34. //
  35. class CTheApp : public CWinApp
  36. {
  37. public:
  38. BOOL InitInstance();
  39. int ExitInstance();
  40. // Override this to provide wxWidgets message loop
  41. // compatibility
  42. BOOL PreTranslateMessage(MSG *msg);
  43. BOOL OnIdle(LONG lCount);
  44. };
  45. /////////////////////////////////////////////////////////////////////////////
  46. #endif // __MFCTEST_H__