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

模拟服务器

开发平台:

C/C++

  1. /*
  2.  *  File:      WndChessPanel.h
  3.  *  Dest:      棋盘面板
  4.  *  Creator:   flying
  5.  *  CopyRight: KingSoft
  6.  *  Date:      2003-8-22
  7.  */
  8. #pragma once
  9. #if !defined _FACESELECTOR
  10. #define _FACESELECTOR
  11. #include "../Elem/WndWindow.h"
  12. #include "../Elem/UiImage.h"
  13. class KWndChessPanel : public KWndWindow
  14. {
  15. public:
  16. //打开窗口,返回唯一的一个类对象实例
  17. static KWndChessPanel* OpenWindow(bool bShow);
  18. //关闭窗口,同时可以选则是否删除对象实例
  19. static void CloseWindow(bool bDestroy);
  20. static void Clear();
  21. static KWndChessPanel* GetIfVisible();
  22. // Draw the grid
  23. void PaintWindow();
  24. virtual int Init(KIniFile* pIniFile, const char* pSection);
  25. int PtInWindow(int x, int y);
  26. int WndProc(unsigned int uMsg, unsigned int uParam, int nParam);
  27. private:
  28. KWndChessPanel();
  29. virtual ~KWndChessPanel();
  30. static KWndChessPanel* m_pSelf;
  31. void Initialize();
  32. int m_nIndex;
  33. int m_nLeft;
  34. int m_nBottom;
  35. int m_nRowCount;
  36. int m_nCount;
  37. int m_nBtnWidth;
  38. int m_nBtnHeight;
  39. char m_szImageName[128];
  40. unsigned int m_nBgColor;
  41. unsigned int m_nBgOver;
  42. unsigned int m_nBgAlpha;
  43. unsigned int m_nBorderColor;
  44. char m_szFaceIniFile[32];
  45. bool m_bMouse;
  46. int m_nMouseX1;
  47. int m_nMouseY1;
  48. int m_nMouseX2;
  49. int m_nMouseY2;
  50. int m_nCurIndex;
  51. int m_nCurX, m_nCurY;
  52. };
  53. #endif