MainFrm.h
上传用户:yuxuan88
上传日期:2022-05-09
资源大小:2290k
文件大小:2k
- // MainFrm.h : interface of the CMainFrame class
- //
- /////////////////////////////////////////////////////////////////////////////
- #if !defined(AFX_MAINFRM_H__2AF6EEC4_2352_4394_AA7E_13B42AFD6F7D__INCLUDED_)
- #define AFX_MAINFRM_H__2AF6EEC4_2352_4394_AA7E_13B42AFD6F7D__INCLUDED_
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
- //定义右边视的类型
- #define USERSVIEW 0
- #define USERINFOVIEW 1
- #define WRONGVIEW -1
- class CLeftTreeView;
- class CUserinfoView;
- class CUsersListView;
- class CMainFrame : public CFrameWnd
- {
-
- protected: // create from serialization only
- CMainFrame();
- DECLARE_DYNCREATE(CMainFrame)
- // Attributes
- public:
- CLeftTreeView* m_pLeftView; //树视图
- CUsersListView* m_pUsersView; //住户列表视图
- CUserinfoView* m_pUserinfoView; //住户详细信息视图
- void SwitchToView(int nViewType);
- // Operations
- public:
- // Overrides
- // ClassWizard generated virtual function overrides
- //{{AFX_VIRTUAL(CMainFrame)
- public:
- virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
- protected:
- virtual BOOL OnCreateClient(LPCREATESTRUCT lpcs, CCreateContext* pContext);
- //}}AFX_VIRTUAL
- // Implementation
- public:
- virtual ~CMainFrame();
- #ifdef _DEBUG
- virtual void AssertValid() const;
- virtual void Dump(CDumpContext& dc) const;
- #endif
- protected: // control bar embedded members
- CStatusBar m_wndStatusBar;
- CToolBar m_wndToolBar;
- CSplitterWnd m_wndSplitter;
- // Generated message map functions
- protected:
- //{{AFX_MSG(CMainFrame)
- afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
- afx_msg void OnOperateAdduser();
- afx_msg void OnOperateQuery();
- //}}AFX_MSG
- DECLARE_MESSAGE_MAP()
- };
- /////////////////////////////////////////////////////////////////////////////
- //{{AFX_INSERT_LOCATION}}
- // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
- #endif // !defined(AFX_MAINFRM_H__2AF6EEC4_2352_4394_AA7E_13B42AFD6F7D__INCLUDED_)