UiContainer.h
Upload User: dzyhzl
Upload Date: 2019-04-29
Package Size: 56270k
Code Size: 1k
Development Platform:

C/C++

  1. /* 
  2.  * File:     UiContainer.h
  3.  * Desc:     用户面板容器类
  4.  * Author:   flying
  5.  * Creation: 2003/7/4
  6.  */
  7. //-----------------------------------------------------------------------------
  8. #pragma once
  9. enum MSG_SWITCH_UI
  10. {
  11. SWITCH_TO_MESSAGE = 0,
  12. SWITCH_TO_FRIEND,
  13. SWITCH_TO_EXCHANGE,
  14. SWITCH_TO_STATUS,
  15. SWITCH_TO_ITEM,
  16. SWITCH_TO_SKILL,
  17. SWITCH_TO_TEAM,
  18. SWITCH_TO_SIT,
  19. SWITCH_TO_RUN,
  20. SWITCH_COUNT,
  21. };
  22. class KUiContainer
  23. {
  24. public:
  25. KUiContainer();
  26. virtual ~KUiContainer();
  27. int DoSwitchUi(int nSwitch);
  28. int Initialize(KWndWindow* InitWnd);
  29. //int RegisterWnds(KWndWindow* pWnd, int nMessage);
  30. private:
  31. KWndWindow* pCurrentWnd;
  32. int nCurrentSwitch;
  33. };