ChildFrm.h
上传用户:sesekoo
上传日期:2020-07-18
资源大小:21543k
文件大小:2k
源码类别:

界面编程

开发平台:

Visual C++

  1. // ChildFrm.h : interface of the CChildFrame class
  2. //
  3. /////////////////////////////////////////////////////////////////////////////
  4. #if !defined(AFX_CHILDFRM_H__24FC4FC8_9EB2_47D0_8A72_FBE881021D1D__INCLUDED_)
  5. #define AFX_CHILDFRM_H__24FC4FC8_9EB2_47D0_8A72_FBE881021D1D__INCLUDED_
  6. #if _MSC_VER > 1000
  7. #pragma once
  8. #endif // _MSC_VER > 1000
  9. #include "LogCtrl.h"
  10. class CChildFrame : public CExtNCW < CMDIChildWnd >
  11. {
  12. DECLARE_DYNCREATE(CChildFrame)
  13. public:
  14. CChildFrame();
  15. // Attributes
  16. public:
  17. private:
  18. HICON m_hChildFrameIcon;
  19. CLogCtrl m_wndLogCtrl;
  20. CDemoEventSourceThread m_DemoThread;
  21. // Operations
  22. public:
  23. // Overrides
  24. // ClassWizard generated virtual function overrides
  25. //{{AFX_VIRTUAL(CChildFrame)
  26. public:
  27. virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
  28. virtual BOOL OnCmdMsg(UINT nID, int nCode, void* pExtra, AFX_CMDHANDLERINFO* pHandlerInfo);
  29. virtual BOOL PreTranslateMessage(MSG* pMsg);
  30. virtual BOOL DestroyWindow();
  31. //}}AFX_VIRTUAL
  32. // Implementation
  33. public:
  34. // view for the client area of the frame.
  35. virtual ~CChildFrame();
  36. #ifdef _DEBUG
  37. virtual void AssertValid() const;
  38. virtual void Dump(CDumpContext& dc) const;
  39. #endif
  40. // Generated message map functions
  41. protected:
  42. //{{AFX_MSG(CChildFrame)
  43. // NOTE - the ClassWizard will add and remove member functions here.
  44. //    DO NOT EDIT what you see in these blocks of generated code!
  45. afx_msg void OnFileClose();
  46. afx_msg void OnSetFocus(CWnd* pOldWnd);
  47. afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
  48. //}}AFX_MSG
  49. DECLARE_MESSAGE_MAP()
  50. };
  51. /////////////////////////////////////////////////////////////////////////////
  52. //{{AFX_INSERT_LOCATION}}
  53. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  54. #endif // !defined(AFX_CHILDFRM_H__24FC4FC8_9EB2_47D0_8A72_FBE881021D1D__INCLUDED_)