#pragma once
//核心
#include "CDownLoadFile.h"
#include "CCmd.h"
//字符与通用
#include "CLanguage.h"
#include "CClasses.h"
#include "DefineStr.h"
//系统与资源
#include <WinInet.h>//网络
#include <thread>
#include "resource.h"
//UI
#include "CMsgWnd.h"
#include "CAdsBanner.h"
#include "InstallPage.h"
#include "InstallingPage.h"
#include "InstalledPage.h"
#include "MessageBoxWnd.h"
#include "ComparVersion.h"

class CMainPage : public CNotifyPump
{
public:
	CMainPage();

public:
	void SetPaintMagager(CPaintManagerUI* pPaintMgr);

	DUI_DECLARE_MESSAGE_MAP()
    virtual void OnClick(TNotifyUI& msg);
	virtual void OnSelectChanged(TNotifyUI& msg);
	virtual void OnItemClick(TNotifyUI& msg);

private:
	CPaintManagerUI* m_pPaintManager;
};

typedef struct ThreadData
{
public:
	struct CFrameWnd* pFrame;
}ThreadData;

typedef struct CurrentState
{
public:
	enum class LayoutType m_LayoutType = LayoutType::Home;
	enum class VertionResultType m_VertionResultType = VertionResultType::None;
	enum class InstallStateType m_InstallStateType = InstallStateType::None;
	enum class InstallNetFrameworkType m_NetFrameworkType = InstallNetFrameworkType::None;
	enum class InstallVCPlusPlusType m_VcPlusPlusType = InstallVCPlusPlusType::None;
}CurrentState;
