www.pudn.com > fanccMSNr.src.rar > ConnectedView.h
#pragma once
#include "messenger/MessengerModel.hpp"
// CConnectedView ºäÀÔ´Ï´Ù.
class CConnectedView : public CTreeView
{
DECLARE_DYNCREATE(CConnectedView)
protected:
MessengerModel *model;
protected:
CConnectedView(); // µ¿Àû ¸¸µé±â¿¡ »ç¿ëµÇ´Â protected »ý¼ºÀÚÀÔ´Ï´Ù.
virtual ~CConnectedView();
public:
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
void setModel(MessengerModel &model) {
this->model=&model;
}
protected:
DECLARE_MESSAGE_MAP()
public:
afx_msg void OnUserChat();
afx_msg void OnUpdateUserChat(CCmdUI *pCmdUI);
afx_msg void OnNMRclick(NMHDR *pNMHDR, LRESULT *pResult);
afx_msg void OnStatusAway();
afx_msg void OnStatusBeRightBack();
afx_msg void OnStatusBusy();
afx_msg void OnStatusOffline();
afx_msg void OnStatusOnThePhone();
afx_msg void OnStatusOnline();
afx_msg void OnStatusOutToLunch();
afx_msg void OnToolScreenName();
afx_msg void OnUserBlock();
afx_msg void OnUpdateUserBlock(CCmdUI *pCmdUI);
afx_msg void OnUserDelete();
afx_msg void OnUpdateUserDelete(CCmdUI *pCmdUI);
afx_msg void OnAddUser();
};