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

模拟服务器

开发平台:

Visual C++

  1. #ifndef _MIRMSGBOX3D_H_
  2. #define _MIRMSGBOX3D_H_
  3. class CMirMsgBox3D : public CMirMsgBox
  4. {
  5. public:
  6. CMirMsgBox3D();
  7. ~CMirMsgBox3D();
  8. virtual BOOL Load(CWHWilImageData* pxBtnImage);
  9. virtual BOOL DestoryMessageBox(VOID); // DestoryMessage box
  10. BOOL CreateWnd(CWHWilImageData* pxWndImage, BOOL bCanMove, INT nStartX, INT nStartY, INT nWidth, INT nHeight);
  11. virtual BOOL ShowMessageBox(CHAR* szMgs,INT nType,INT nImgIndex); // Show Message box with Initialization
  12. virtual BOOL HideMessageBox(VOID); // Hide Message box
  13. virtual BOOL OnKeyDown(WPARAM wParam,LPARAM lParam);
  14. virtual HRESULT OnButtonDown(POINT ptMouse); // Button Down
  15. virtual HRESULT OnButtonUp(POINT ptMouse); // Button Up
  16. VOID MoveWnd(POINT ptMouse);
  17. // Render
  18. virtual BOOL RenderMessageBox(INT nLoopTIme);
  19. BOOL RenderBox(VOID);
  20. private:
  21. INT m_nID;
  22. INT m_nFrameImgIdx;
  23. CWHWilImageData* m_pxWndImage;
  24. BOOL m_bCanMove;
  25. BOOL m_bFocused;
  26. POINT m_bGrabbedMousePos;
  27. // 3D抛胶飘
  28. D3DVERTEX m_avMagic[4];
  29. RECT m_rcWnd;
  30. RECT m_rcImgWnd;
  31. INT m_nCurrImageIdx;
  32. INT m_nWidth;
  33. INT m_nHeight;
  34. protected:
  35. };
  36. #endif _MIRMSGBOX3D_H_