CMainPage.h 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. #pragma once
  2. //核心
  3. #include "CDownLoadFile.h"
  4. #include "CCmd.h"
  5. //字符与通用
  6. #include "CLanguage.h"
  7. #include "CClasses.h"
  8. #include "DefineStr.h"
  9. //系统与资源
  10. #include <WinInet.h>//网络
  11. #include <thread>
  12. #include "resource.h"
  13. //UI
  14. #include "CMsgWnd.h"
  15. #include "CAdsBanner.h"
  16. #include "InstallPage.h"
  17. #include "InstallingPage.h"
  18. #include "InstalledPage.h"
  19. #include "MessageBoxWnd.h"
  20. #include "ComparVersion.h"
  21. class CMainPage : public CNotifyPump
  22. {
  23. public:
  24. CMainPage();
  25. public:
  26. void SetPaintMagager(CPaintManagerUI* pPaintMgr);
  27. DUI_DECLARE_MESSAGE_MAP()
  28. virtual void OnClick(TNotifyUI& msg);
  29. virtual void OnSelectChanged(TNotifyUI& msg);
  30. virtual void OnItemClick(TNotifyUI& msg);
  31. private:
  32. CPaintManagerUI* m_pPaintManager;
  33. };
  34. typedef struct ThreadData
  35. {
  36. public:
  37. struct CFrameWnd* pFrame;
  38. }ThreadData;
  39. typedef struct CurrentState
  40. {
  41. public:
  42. enum class LayoutType m_LayoutType = LayoutType::Home;
  43. enum class VertionResultType m_VertionResultType = VertionResultType::None;
  44. enum class InstallStateType m_InstallStateType = InstallStateType::None;
  45. enum class InstallNetFrameworkType m_NetFrameworkType = InstallNetFrameworkType::None;
  46. enum class InstallVCPlusPlusType m_VcPlusPlusType = InstallVCPlusPlusType::None;
  47. }CurrentState;