GameWnd.h
上传用户:cydong117
上传日期:2009-11-10
资源大小:638k
文件大小:1k
- #ifndef _CGAMEWND_H
- #define _CGAMEWND_H
- class CGameWnd
- {
- public:
- INT m_nID; // 扩档快 包府磊啊 捞扩档快甫 备盒且 侥喊磊.
- RECT m_rcImgWnd; // 扩档快狼 捞固瘤狼康开.
- RECT m_rcWnd; // 扩档快狼 拳搁康开.
- INT m_nFrameImgIdx; // 捞固瘤 包访 函荐甸.
- CWHWilImageData* m_pxWndImage;
- BOOL m_bActive; // 扩档快 劝己拳 咯何.
- BOOL m_bFocused;
- BOOL m_bMoving; // 扩档快 框流捞绰瘤狼 咯何.
- BOOL m_bCanMove; // 扩档快 绊沥咯何.
- INT m_nWidth;
- INT m_nHeight;
- POINT m_bGrabbedMousePos;
- // 3D抛胶飘
- D3DVERTEX m_avBoard[4];
- public:
- __inline RECT GetGameWndRect()
- {
- return m_rcWnd;
- }
- __inline BOOL GetGameWndActive()
- {
- return m_bActive;
- }
- __inline CGameWnd()
- {
- Init();
- }
- ~CGameWnd()
- {
- Destroy();
- }
- virtual VOID Init();
- virtual VOID Destroy();
- virtual VOID ShowGameWnd();
- VOID ResetWndImg(INT nIdx);
- VOID CreateGameWnd(INT nID, CWHWilImageData* pxWndImage, INT nFrameImgIdx, BOOL bCanMove, INT nStartX, INT nStartY, INT nWidth = 0, INT nHeight = 0);
- VOID DestroyGameWnd();
- VOID SetGameWndActive(BOOL bActive);
- VOID SetGameWndFocused(BOOL bFocused);
- VOID SetReadyMove(POINT ptMouse);
- VOID MoveGameWnd(POINT ptMouse);
- };
- #endif // _CGAMEWND_H