MsgWnd.cpp
上传用户:dzyhzl
上传日期:2019-04-29
资源大小:56270k
文件大小:1k
源码类别:

模拟服务器

开发平台:

C/C++

  1. // MsgWnd.cpp : implementation file
  2. //
  3. #include "stdafx.h"
  4. #include "..updatedll.h"
  5. #include "MsgWnd.h"
  6. /////////////////////////////////////////////////////////////////////////////
  7. // CMsgWnd
  8. CMsgWnd::CMsgWnd()
  9. {
  10. }
  11. CMsgWnd::~CMsgWnd()
  12. {
  13. }
  14. BEGIN_MESSAGE_MAP(CMsgWnd, CWnd)
  15. //{{AFX_MSG_MAP(CMsgWnd)
  16. ON_WM_DESTROY()
  17. ON_WM_PAINT()
  18. //}}AFX_MSG_MAP
  19.     ON_MESSAGE(WM_DOWNNOTIFY_DEFAULT, OnDefaultMessage)
  20. END_MESSAGE_MAP()
  21. /////////////////////////////////////////////////////////////////////////////
  22. // CMsgWnd message handlers
  23. void CMsgWnd::OnDestroy() 
  24. {
  25.     CWnd::OnDestroy();
  26. // TODO: Add your message handler code here
  27. }
  28. void CMsgWnd::OnPaint() 
  29. {
  30. CPaintDC dc(this); // device context for painting
  31. // TODO: Add your message handler code here
  32. // Do not call CWnd::OnPaint() for painting messages
  33. }
  34. BOOL CMsgWnd::PreTranslateMessage(MSG* pMsg) 
  35. {
  36. // TODO: Add your specialized code here and/or call the base class
  37. return CWnd::PreTranslateMessage(pMsg);
  38. }
  39. extern CUpdateDLLApp g_theApp;
  40. LRESULT CMsgWnd::OnDefaultMessage(WPARAM wParam, LPARAM lParam)
  41. {
  42.     LRESULT lResult = 0;
  43.     
  44.     lResult = g_theApp.DownDispatch(GetCurrentMessage());
  45.     
  46.     return lResult;
  47. }