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


// MainFrm.h : interface of the CMainFrame class 
// 
 
 
#pragma once 
#include "OutputBar.h" 
#include "inputbar.h" 
#include "ToolBox.h" 
#include "PropertiesViewBar.h" 
#include "onlineip.h" 
 
class CMainFrame : public CBCGPFrameWnd 
{ 
	 
protected: // create from serialization only 
	CMainFrame(); 
	DECLARE_DYNCREATE(CMainFrame) 
 
// Attributes 
private: 
	int flashWndCount;//属性窗口FLASH的次数 
	int m_nTimer; 
// Operations 
public: 
	void FillOutputBarInfo(); 
	void RefreshPropList(); 
 // Overrides 
public: 
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs); 
	virtual BOOL OnCommand(WPARAM wParam, LPARAM lParam); 
	virtual BOOL OnShowPopupMenu (CBCGPPopupMenu* pMenuPopup); 
 
// Implementation 
public: 
	virtual ~CMainFrame(); 
#ifdef _DEBUG 
	virtual void AssertValid() const; 
	virtual void Dump(CDumpContext& dc) const; 
#endif 
 
protected:  // control bar embedded members 
	CBCGPMenuBar		m_wndMenuBar; 
	CBCGPStatusBar  m_wndStatusBar; 
	CBCGPToolBar    m_wndToolBar; 
	CInputBar	m_wndInput; 
	COutputBar	m_wndOutput; 
	CToolBoxBar		m_wndToolBoxBar; 
	CPropertiesViewBar		m_wndPropertiesBar; 
	CBCGPCaptionBar	m_wndCaptionBar; 
	COnlineIPBar  m_wndOnlineIPBar; 
	CBitmap			m_bmpCaption; 
// Generated message map functions 
public: 
	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct); 
	afx_msg void OnViewOutput(); 
	afx_msg void OnUpdateViewOutput(CCmdUI* pCmdUI); 
	afx_msg void OnLineIPBar(); 
	afx_msg void OnUpdateOnLineIPBar(CCmdUI* pCmdUI); 
	afx_msg void OnViewInput(); 
	afx_msg void OnUpdateViewInput(CCmdUI* pCmdUI); 
	afx_msg void OnViewCaptionBar(); 
	afx_msg void OnUpdateViewCaptionBar(CCmdUI* pCmdUI); 
	afx_msg void OnToolBox(); 
	afx_msg void OnViewToolbox(); 
	afx_msg void OnUpdateViewToolbox(CCmdUI* pCmdUI); 
	afx_msg void OnViewProperties(); 
	afx_msg void OnUpdateViewProperties(CCmdUI* pCmdUI); 
	afx_msg void OnServerConfig(); 
	afx_msg void OnClientConfig(); 
	afx_msg void OnTimer(UINT nIDEvent); 
	afx_msg void OnViewFullscreen(); 
	afx_msg void OnHelpUsing(); 
	LRESULT OnRefreshCaptionBar(WPARAM wparm, LPARAM lparm); 
	LRESULT OnAppendOutputBarInfo(WPARAM wparm, LPARAM lparm); 
	LRESULT OnRefreshIPBar(WPARAM wparm, LPARAM lparm);//更新客户端在线IP列表 
	LRESULT OnToolbarContextMenu(WPARAM,LPARAM); 
	LRESULT OnPaneProgressBar(WPARAM wparm, LPARAM lparm); 
	DECLARE_MESSAGE_MAP() 
};