www.pudn.com > 医学图像处理示例源代码.rar > MainFrm.h


// MainFrm.h : interface of the CMainFrame class 
// 
///////////////////////////////////////////////////////////////////////////// 
 
#if !defined(AFX_MAINFRM_H__A5C85A09_0580_11D3_B6E5_5254AB111C09__INCLUDED_) 
#define AFX_MAINFRM_H__A5C85A09_0580_11D3_B6E5_5254AB111C09__INCLUDED_ 
 
#if _MSC_VER >= 1000 
#pragma once 
#endif // _MSC_VER >= 1000 
#include "RightBar.h" 
 
class CMdiClient : public CWnd 
{ 
	DECLARE_DYNCREATE(CMdiClient) 
 
// Construction 
public: 
	CMdiClient(); 
 
// Attributes 
public: 
 
// Operations 
public: 
 
// Overrides 
	// ClassWizard generated virtual function overrides 
	//{{AFX_VIRTUAL(CMdiClient) 
	//}}AFX_VIRTUAL 
 
// Implementation 
public: 
	BOOL SetBitmap(UINT nID); 
	COLORREF SetBackColor(COLORREF nBackColor); 
	virtual ~CMdiClient(); 
 
	// Generated message map functions 
protected: 
	//{{AFX_MSG(CMdiClient) 
	afx_msg BOOL OnEraseBkgnd(CDC* pDC); 
	afx_msg void OnSize(UINT nType, int cx, int cy); 
	//}}AFX_MSG 
	DECLARE_MESSAGE_MAP() 
 
private: 
	CBitmap*	m_pBmp; 
	COLORREF	m_nBackColor; 
}; 
 
class CMainFrame : public CMDIFrameWnd 
{ 
	DECLARE_DYNAMIC(CMainFrame) 
public: 
	CMainFrame(); 
 
// Attributes 
public: 
	CFont       m_font; 
	LOGFONT     m_lf; 
// Operations 
public: 
 
// Overrides 
	// ClassWizard generated virtual function overrides 
	//{{AFX_VIRTUAL(CMainFrame) 
	public: 
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs); 
	virtual BOOL PreTranslateMessage(MSG* pMsg); 
	protected: 
	virtual BOOL OnCreateClient(LPCREATESTRUCT lpcs, CCreateContext* pContext); 
	//}}AFX_VIRTUAL 
 
// Implementation 
public: 
	int m_nDatePaneNo; 
	int m_nTimePaneNo; 
	virtual ~CMainFrame(); 
#ifdef _DEBUG 
	virtual void AssertValid() const; 
	virtual void Dump(CDumpContext& dc) const; 
#endif 
 
public:  // control bar embedded members 
//	static CString lpHospital[]; 
//	int isHospitalLength; 
	CStatusBar  m_wndStatusBar; 
	CToolBar    m_wndToolBar; 
	CRightBar   m_wndMyDialogBar; 
// Generated message map functions 
protected: 
	 
	afx_msg void OnMenuSelect(UINT nItemID, UINT nFlags, HMENU hSysMenu); 
	afx_msg void OnInitMenuPopup(CMenu* pPopupMenu, UINT nIndex, BOOL bSysMenu); 
	afx_msg void OnUpdateDate(CCmdUI* pCmdUI); 
	afx_msg void OnUpdateTime(CCmdUI* pCmdUI); 
	//{{AFX_MSG(CMainFrame) 
	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct); 
	afx_msg void OnViewStatusChangefont(); 
	afx_msg void OnWindowCloseall(); 
	afx_msg void OnUpdateWindowCloseall(CCmdUI* pCmdUI); 
	afx_msg void OnSize(UINT nType, int cx, int cy); 
	afx_msg void OnBCReset(); 
	afx_msg void OnUpdateBCReset(CCmdUI* pCmdUI); 
	//}}AFX_MSG 
	DECLARE_MESSAGE_MAP() 
private: 
	UINT m_nStatusPane1ID; 
private: 
	UINT m_nStatusPane1Style; 
private: 
	INT  m_nStatusPane1Width; 
private: 
	BOOL m_bMenuSelect; 
private: 
	BOOL InitStatusBar(UINT *pIndicators, int nSize, int nSeconds); 
private: 
	CMdiClient m_wndMdiClient; 
}; 
 
///////////////////////////////////////////////////////////////////////////// 
 
//{{AFX_INSERT_LOCATION}} 
// Microsoft Developer Studio will insert additional declarations immediately before the previous line. 
 
#endif // !defined(AFX_MAINFRM_H__A5C85A09_0580_11D3_B6E5_5254AB111C09__INCLUDED_)