CParseMessage.cpp
资源名称:QQ示例源码.rar [点击查看]
上传用户:power_led
上传日期:2013-04-11
资源大小:373k
文件大小:0k
源码类别:
ICQ/即时通讯
开发平台:
Visual C++
- #include "Stdafx.h"
- #include "ParseMessage.h"
- CParseMessage::~CParseMessage()
- {
- }
- CParseMessage::CParseMessage(const CWnd * pWnd,const Message & Value)
- {
- pView = const_cast < CWnd *>(pWnd);
- Msg = Value;
- }
- BOOL CParseMessage::SWitchMessage()
- {
- ASSERT(pView != NULL);
- ASSERT_VALID(pView);
- if(Msg.iType == USERLOG && Msg.iSubType == ROOMLIST)
- {
- pView ->PostMessage(WM_ADDNEWROOM,WPARAM(&Msg),0);
- }
- return TRUE;
- }