www.pudn.com > mischat.rar > OnLineIP.h
// outputbar.h : interface of the COnlineIPBar class
//
/////////////////////////////////////////////////////////////////////////////
#pragma once
class COnlineIPToolBar : public CBCGPToolBar
{
public:
virtual void OnUpdateCmdUI(CFrameWnd* /*pTarget*/, BOOL bDisableIfNoHndler)
{
CBCGPToolBar::OnUpdateCmdUI ((CFrameWnd*) GetOwner (), bDisableIfNoHndler);
}
virtual BOOL AllowShowOnList () const { return FALSE; }
};
class COnlineIPDropDownToolBar: public CBCGPDropDownToolBar
{
public:
virtual void OnUpdateCmdUI(CFrameWnd* /*pTarget*/, BOOL bDisableIfNoHndler)
{
CBCGPDropDownToolBar::OnUpdateCmdUI ((CFrameWnd*) GetOwner (), bDisableIfNoHndler);
}
virtual BOOL AllowShowOnList () const { return FALSE; }
};
class COnlineIPBar : public CBCGPDockingControlBar
{
public:
COnlineIPBar();
// Attributes
CListCtrl m_wndList;
private:
BOOL OnlineIP;
protected:
COnlineIPToolBar m_wndToolBar;
COnlineIPDropDownToolBar m_wndDropDownToolBar;
CImageList imageList;
// Operations
public:
void AdjustLayout ();
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(COnlineIPBar)
//}}AFX_VIRTUAL
// Implementation
public:
virtual ~COnlineIPBar();
// Generated message map functions
//{{AFX_MSG(COnlineIPBar)
afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
afx_msg void OnSize(UINT nType, int cx, int cy);
afx_msg void OnPaint();
afx_msg void OnSetFocus(CWnd* pOldWnd);
afx_msg void OnLineIPSelToDeny();
afx_msg void OnUpdateOnLineIPSelToDeny(CCmdUI* pCmdUI);
afx_msg void OnLineIPDelFromDeny();
afx_msg void OnUpdateOnLineIPDelFromDeny(CCmdUI* pCmdUI);
afx_msg void OnLineIPSendFile();
afx_msg void OnUpdateOnLineIPSendFile(CCmdUI* pCmdUI);
afx_msg void OnLineIPUser();
afx_msg void OnUpdateOnLineIPUser(CCmdUI* pCmdUI);
afx_msg void OnLineIPDeny();
afx_msg void OnUpdateOnLineIPDeny(CCmdUI* pCmdUI);
afx_msg void OnLineIPDisconnect();
afx_msg void OnUpdateOnLineIPDisconnect(CCmdUI* pCmdUI);
afx_msg void OnLineIPDisconnectAll();
afx_msg void OnLineIPSendFileToServer();
afx_msg void OnUpdateOnLineIPSendFileToServer(CCmdUI* pCmdUI);
afx_msg void OnLineIPSound();
afx_msg void OnUpdateOnLineIPSound(CCmdUI* pCmdUI);
afx_msg void OnLineIPShare();
afx_msg void OnUpdateOnLineIPShare(CCmdUI* pCmdUI);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
//