UiInformation2.h
上传用户:dzyhzl
上传日期:2019-04-29
资源大小:56270k
文件大小:2k
- /*****************************************************************************************
- // 界面--消息窗口
- // Copyright : Kingsoft 2002
- // Author : Wooy(Wu yue)
- // CreateTime: 2002-8-14
- ------------------------------------------------------------------------------------------
- *****************************************************************************************/
- #pragma once
- #include "../Elem/WndText.h"
- #include "../Elem/WndPureTextBtn.h"
- #include "../Elem/WndShowAnimate.h"
- struct KUiInformationParam;
- class KUiInformation2 : protected KWndShowAnimate
- {
- public:
- void Initialize(); //初始化
- void LoadScheme(const char* pScheme); //载入界面方案
- void Show(const char* pInformation, int nInforLen, const char* pBtnLabel,
- KWndWindow* pCallerWnd = 0, unsigned int uParam = 0);//显示窗口
- void SpeakWords(KUiInformationParam* pWordDataList, int nCount); //显示对话内容
- KWndWindow* TopChildFromPoint(int x, int y) {
- return this;
- }
- void Hide(); //隐藏窗口
- void Close();
- KUiInformation2();
- ~KUiInformation2();
- private:
- int WndProc(unsigned int uMsg, unsigned int uParam, int nParam);//窗口函数
- private:
- KWndText256 m_Information;
- KWndPureTextBtn m_OKBtn;
- KWndWindow* m_pCallerWnd;
- unsigned int m_uCallerParam;
- KUiInformationParam* m_pWordDataList;
- int m_nNumWordData;
- int m_nCurrentWord;
- };
- void UIMessageBox2(const char* pMsg, int nMsgLen = -1, const char* pBtnLabel = 0,
- KWndWindow* pCaller = 0, unsigned int uParam = 0);
- extern KUiInformation2 g_UiInformation2;