www.pudn.com > rsdagl.rar > MainFrm.h


// MainFrm.h : CMainFrame 类的接口 
// 
 
 
#pragma once 
#include "afxcmn.h" 
#include "XTOutBarCtrl.h" 
#include "afxext.h" 
#include "mainquery.h" 
#include "人事管理系统Doc.h" 
 
 
 
typedef struct AdminInfo1 
{ 
	CString username; 
	CString password; 
	CString SystemPath; 
}AdminInfo1; 
 
class CMainFrame : public CFrameWnd 
{ 
	 
protected: // 仅从序列化创建 
	CMainFrame(); 
	DECLARE_DYNCREATE(CMainFrame) 
 
// 属性 
public: 
	CMyDoc * pDoc; 
 
 
// 操作 
public: 
 
// 重写 
public: 
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs); 
 
// 实现 
public: 
	virtual ~CMainFrame(); 
#ifdef _DEBUG 
	virtual void AssertValid() const; 
	virtual void Dump(CDumpContext& dc) const; 
#endif 
 
protected:  // 控件条嵌入成员 
	CStatusBar  m_wndStatusBar; 
	CToolBar    m_wndToolBar; 
 
// 生成的消息映射函数 
protected: 
	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct); 
	afx_msg void OnMainQuery(); 
	afx_msg void OnAddDate(); 
	afx_msg void OnCKTX(); 
	afx_msg void OnID4(); 
	afx_msg void OnRSTX(); 
	afx_msg void OnID6(); 
	afx_msg void OnIDHELP(); 
	afx_msg void OnPrintFile(); 
	afx_msg void OnModifyPassword(); 
	afx_msg void OnAddUser(); 
	afx_msg void OndelUser(); 
	afx_msg LRESULT OnOutbarNotify(WPARAM wParam, LPARAM lParam); 
 
	DECLARE_MESSAGE_MAP() 
public: 
	CImageList m_NormalList; 
	CImageList m_hotList; 
	CImageList m_DisableList; 
	virtual BOOL Create(LPCTSTR lpszClassName, LPCTSTR lpszWindowName, DWORD dwStyle = WS_OVERLAPPEDWINDOW, const RECT& rect = rectDefault, CWnd* pParentWnd = NULL, LPCTSTR lpszMenuName = NULL, DWORD dwExStyle = 0, CCreateContext* pContext = NULL); 
	CSplitterWnd m_wndSplitter; 
	CXTOutBarCtrl m_wndOutlookBar; 
	CImageList m_ImageLarge; 
	CImageList m_ImageSmall; 
	bool m_bDestroy; 
	bool m_isMainQuery; 
	AdminInfo1 m_AdminInfo; 
 
protected: 
	virtual BOOL OnCreateClient(LPCREATESTRUCT lpcs, CCreateContext* pContext); 
public: 
	void InitializeOutlookBar(void); 
	afx_msg void OnDestroy(); 
	 
	CMainQuery *m_pMainQre; 
 
	afx_msg BOOL OnQueryOpen(); 
protected: 
	virtual BOOL OnWndMsg(UINT message, WPARAM wParam, LPARAM lParam, LRESULT* pResult); 
public: 
	afx_msg void OnMenupass(); 
	afx_msg void OnMenuModifyPassword(); 
	afx_msg void OnMenuDeleteuser(); 
	afx_msg void OnMenuprintfile(); 
	afx_msg void OnMenurstx(); 
	afx_msg void OnMenucktx(); 
	afx_msg void OnMENUtjxx(); 
	afx_msg void OnMenuxxll(); 
	afx_msg void OnMenuxxcx(); 
	afx_msg void OnMenuhelp(); 
	afx_msg void OnMenuxgxx(); 
	afx_msg void OnMenuscxx(); 
	 
	CString m_zhuce; 
	_RecordsetPtr m_pRecordset; 
};