summaryrefslogtreecommitdiff
path: root/Editor/GUI/WindowUtil.cpp
blob: 34a7b305c2354527cb5a7b8607262e2eda9fd05d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#include "EditorWindows.h"
#include "WinUtils.h"

const wchar_t* WindowUtil::kContainerWindowClassName = L"GameLabContainerWndClass";
const wchar_t* WindowUtil::kPopupWindowClassName = L"GameLabPopupWndClass";
const wchar_t* WindowUtil::kGUIWindowClassName = L"GUIViewWindowClassName";

static ATOM ContainerWindowClassAtom;
static ATOM PopupWindowClassAtom;
static ATOM GUIViewClassAtom;

void WindowUtil::RegisterClasses() 
{
	log_info("WindowUtil::Init()");

	ContainerWindowClassAtom = winutils::RegisterWindowClass(kContainerWindowClassName, ContainerWindow::ContainerWndProc, CS_HREDRAW | CS_VREDRAW);
	PopupWindowClassAtom = winutils::RegisterWindowClass(kPopupWindowClassName, ContainerWindow::ContainerWndProc, CS_HREDRAW | CS_VREDRAW | CS_DROPSHADOW);//CS_HREDRAW宽度(水平)变化时重绘、CS_VREDRAW高度(垂直)变化时重绘
	GUIViewClassAtom = winutils::RegisterWindowClass(kGUIWindowClassName, GUIWindow::GUIViewWndProc, CS_HREDRAW | CS_VREDRAW | CS_DROPSHADOW);
}