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

模拟服务器

开发平台:

C/C++

  1. /*****************************************************************************************
  2. // 界面窗口体系结构--图形窗口
  3. // Copyright : Kingsoft 2002
  4. // Author :   Wooy(Wu yue)
  5. // CreateTime: 2002-7-25
  6. ------------------------------------------------------------------------------------------
  7. 显示(spr)图形的窗口。
  8. *****************************************************************************************/
  9. #pragma once
  10. #include "WndWindow.h"
  11. #include "UiImage.h"
  12. #define WNDIMG_ES_EXCLUDE_TRANS 0x0001 //以图形的形状来作为窗口的形状
  13. class KWndImage : public KWndWindow
  14. {
  15. public:
  16. virtual int Init(KIniFile* pIniFile, const char* pSection);//初始化
  17. virtual int PtInWindow(int x, int y); //判断一个点是否在窗口范围内,传入的是绝对坐标
  18. virtual void PaintWindow(); //窗体绘制
  19. void Clone(KWndImage* pCopy);
  20. void SetFrame(int nFrame); //设置图形帧
  21. int NextFrame(); //图形换帧
  22. void SetImage(short nType, const char* pszImgName, bool bAdjustWndSize = false);
  23. void UpdateTimer();
  24. KWndImage();
  25. protected:
  26. KUiImageRef m_Image;
  27. };