BMWnd.cpp
上传用户:cydong117
上传日期:2009-11-10
资源大小:638k
文件大小:1k
源码类别:

模拟服务器

开发平台:

Visual C++

  1. #include "stdafx.h"
  2. #define WND_WIDTH 640
  3. #define WND_HEIGHT 480
  4. CBMWnd::CBMWnd()
  5. {
  6. m_fIsActive = FALSE;
  7. m_fIsFocused = FALSE;
  8. SetRect(&m_rcWnd,0,0,0,0);
  9. }
  10. CBMWnd::~CBMWnd()
  11. {
  12. }
  13. VOID CBMWnd::OpenWnd(VOID)
  14. {
  15. m_fIsActive = TRUE;
  16. }
  17. VOID CBMWnd::CloseWnd(VOID)
  18. {
  19. m_fIsActive = FALSE;
  20. }
  21. HRESULT CBMWnd::OnButtonDown(WPARAM wParam, LPARAM lParam)
  22. {
  23. POINT ptMouse;
  24. ptMouse.x = LOWORD(lParam);
  25. ptMouse.y = HIWORD(lParam);
  26. return OnButtonDown(ptMouse);
  27. }
  28. HRESULT CBMWnd::OnButtonDown(POINT ptMouse)
  29. {
  30. return 0;
  31. }
  32. HRESULT CBMWnd::OnButtonUp(WPARAM wParam, LPARAM lParam)
  33. {
  34. POINT ptMouse;
  35. ptMouse.x = LOWORD(lParam);
  36. ptMouse.y = HIWORD(lParam);
  37. return OnButtonUp(ptMouse);
  38. }
  39. HRESULT CBMWnd::OnButtonUp(POINT ptMouse)
  40. {
  41. return 0;
  42. }
  43. HRESULT CBMWnd::OnKeyDown(WPARAM wParam, LPARAM lParam)
  44. {
  45. return 0;
  46. }
  47. LRESULT CBMWnd::OnMouseMove(WPARAM wParam, LPARAM lParam)
  48. {
  49. return 0;
  50. }
  51. VOID CBMWnd::Render(INT nLoopTime)
  52. {
  53. }