MainFrm.h
上传用户:haifei
上传日期:2022-07-20
资源大小:77k
文件大小:2k
源码类别:

网络编程

开发平台:

Visual C++

  1. // MainFrm.h : interface of the CMainFrame class
  2. //
  3. /////////////////////////////////////////////////////////////////////////////
  4. #if !defined(AFX_MAINFRM_H__7B6C2C08_9681_11D2_9136_0020AF9FE21E__INCLUDED_)
  5. #define AFX_MAINFRM_H__7B6C2C08_9681_11D2_9136_0020AF9FE21E__INCLUDED_
  6. #if _MSC_VER >= 1000
  7. #pragma once
  8. #endif // _MSC_VER >= 1000
  9. static TCHAR*  REG_SECTION = _T("Settings");
  10. class CMainFrame : public CFrameWnd
  11. {
  12. protected: // create from serialization only
  13. CMainFrame();
  14. DECLARE_DYNCREATE(CMainFrame)
  15. // Attributes
  16. public:
  17. // Operations
  18. public:
  19. // Overrides
  20. // ClassWizard generated virtual function overrides
  21. //{{AFX_VIRTUAL(CMainFrame)
  22. virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
  23. //}}AFX_VIRTUAL
  24. // Implementation
  25. public:
  26. virtual ~CMainFrame();
  27. #ifdef _DEBUG
  28. virtual void AssertValid() const;
  29. virtual void Dump(CDumpContext& dc) const;
  30. #endif
  31. protected:  // control bar embedded members
  32. CStatusBar  m_wndStatusBar;
  33. CToolBar    m_wndToolBar;
  34. // Generated message map functions
  35. protected:
  36. //{{AFX_MSG(CMainFrame)
  37. afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
  38. afx_msg void OnClose();
  39. //}}AFX_MSG
  40. //
  41.     // Window position  
  42. //
  43. private:
  44. void SaveWindowPlacement(LPWINDOWPLACEMENT pwp);
  45. BOOL LoadWindowPlacement(LPWINDOWPLACEMENT pwp);
  46. DECLARE_MESSAGE_MAP()
  47. };
  48. /////////////////////////////////////////////////////////////////////////////
  49. //{{AFX_INSERT_LOCATION}}
  50. // Microsoft Developer Studio will insert additional declarations immediately before the previous line.
  51. #endif // !defined(AFX_MAINFRM_H__7B6C2C08_9681_11D2_9136_0020AF9FE21E__INCLUDED_)