UiSelNativePlace.h
上传用户:dzyhzl
上传日期:2019-04-29
资源大小:56270k
文件大小:1k
- /*****************************************************************************************
- // 界面--选择出生地窗口
- // Copyright : Kingsoft 2003
- // Author : Wooy(Wu yue)
- // CreateTime: 2003-6-7
- ------------------------------------------------------------------------------------------
- *****************************************************************************************/
- #pragma once
- #include "../Elem/WndList.h"
- #include "../Elem/WndButton.h"
- #include "../Elem/WndShowAnimate.h"
- #include "../../Login/LoginDef.h"
- #include "../../Login/Login.h"
- struct KNativePlace
- {
- char szName[32];
- char szImage[128];
- unsigned short nId;
- unsigned short nDescLen;
- char sDesc[256];
- };
- class KUiSelNativePlace : protected KWndShowAnimate
- {
- public:
- static KUiSelNativePlace* OpenWindow(int nPlaceId = -1);//打开窗口,返回唯一的一个类对象实例
- static void CloseWindow(bool bDestroy); //关闭窗口
- private:
- KUiSelNativePlace();
- ~KUiSelNativePlace();
- void Initialize(); //初始化
- void LoadScheme(const char* pScheme); //载入界面方案
- int WndProc(unsigned int uMsg, unsigned int uParam, int nParam); //窗口函数
- void OnOk();
- void OnCancel();
- private:
- void LoadList(int nPlaceId);
- void UpdateData();
- static KUiSelNativePlace* m_pSelf;
- private:
- KNativePlace* m_pPlaceList;
- KWndList m_List;
- KWndImage m_PlaceImg;
- KWndButton m_Ok;
- KWndButton m_Cancel;
- KWndText256 m_PlaceDesc;
- char m_szLoginBg[32];
- int m_nLastSelPlace;
- };