-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathWindowDesc.h
More file actions
27 lines (23 loc) · 758 Bytes
/
Copy pathWindowDesc.h
File metadata and controls
27 lines (23 loc) · 758 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#pragma once
#include <Windows.h>
#include <functional>
#include <optional>
#include <string>
using WindowMessageInterceptor =
std::function<std::optional<LRESULT>(HWND, UINT, WPARAM, LPARAM)>;
// Window creation policy belongs to the process host (Editor or Player).
// CoreWindow only applies the supplied description and never asks which host is running.
struct WindowDesc
{
std::wstring title;
int clientWidth{ 800 };
int clientHeight{ 600 };
int iconResourceId{ 0 };
DWORD style{ WS_OVERLAPPEDWINDOW };
DWORD extendedStyle{ 0 };
bool centerOnDesktop{ true };
bool fitNearestMonitor{ false };
bool showOnCreate{ false };
bool acceptFileDrops{ false };
WindowMessageInterceptor messageInterceptor{};
};