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

模拟服务器

开发平台:

C/C++

  1. /*****************************************************************************************
  2. // 界面--选择出生地窗口
  3. // Copyright : Kingsoft 2003
  4. // Author :   Wooy(Wu yue)
  5. // CreateTime: 2003-6-7
  6. ------------------------------------------------------------------------------------------
  7. *****************************************************************************************/
  8. #pragma once
  9. #include "../Elem/WndList.h"
  10. #include "../Elem/WndButton.h"
  11. #include "../Elem/WndShowAnimate.h"
  12. #include "../../Login/LoginDef.h"
  13. #include "../../Login/Login.h"
  14. struct KNativePlace
  15. {
  16. char szName[32];
  17. char szImage[128];
  18. unsigned short nId;
  19. unsigned short nDescLen;
  20. char sDesc[256];
  21. };
  22. class KUiSelNativePlace : protected KWndShowAnimate
  23. {
  24. public:
  25. static KUiSelNativePlace* OpenWindow(int nPlaceId = -1);//打开窗口,返回唯一的一个类对象实例
  26. static void  CloseWindow(bool bDestroy); //关闭窗口
  27. private:
  28. KUiSelNativePlace();
  29. ~KUiSelNativePlace();
  30. void Initialize(); //初始化
  31. void LoadScheme(const char* pScheme); //载入界面方案
  32. int WndProc(unsigned int uMsg, unsigned int uParam, int nParam); //窗口函数
  33. void OnOk();
  34. void OnCancel();
  35. private:
  36. void LoadList(int nPlaceId);
  37. void UpdateData();
  38. static KUiSelNativePlace* m_pSelf;
  39. private:
  40. KNativePlace* m_pPlaceList;
  41. KWndList m_List;
  42. KWndImage m_PlaceImg;
  43. KWndButton m_Ok;
  44. KWndButton m_Cancel;
  45. KWndText256 m_PlaceDesc;
  46. char m_szLoginBg[32];
  47. int m_nLastSelPlace;
  48. };