DragonNest/Server/ServiceManagerEx/MainSplit.h
2024-12-20 16:56:44 +08:00

49 lines
2.2 KiB
C++
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#pragma once
#include "ServerViewType.h"
class CManagerView;
class CLauncherSession;
class CServiceSession;
class CMonitorSession;
class CPatcherSession;
class CSessionWatcher;
class CMainSplit : public CSplitterWnd
{
DECLARE_DYNAMIC(CMainSplit)
public:
CMainSplit();
virtual ~CMainSplit();
protected:
DECLARE_MESSAGE_MAP()
public:
void CreateSplit(CWnd* pParent, int paneId, const RECT& rect, CCreateContext* pContext);
void ShowWnd(bool show);
void BuildView();
void RefreshView();
void SetManagerViewType(ViewType type);
void ResizeView(const RECT& rect);
void Update();
public:
void OnPatchStart();
void OnPatchProgress(int id, const wchar_t* key, unsigned long progress, unsigned long progressMax);
void OnPatchEnd(bool succeeded);
void OnUnzipProgress(int id, const wchar_t* filename, unsigned long progress, unsigned long progressMax);
public:
void OnWorldMaxUser(int id, int maxUser);
void OnPatchFail(int id, const wchar_t* msg);
void OnPatchCompleted(int id);
void OnCommandPatch();
private:
CManagerView* m_pManagerView;
};