Refactor desktop window management and tray
This commit is contained in:
@@ -135,7 +135,9 @@ bool Win32Window::Create(const std::wstring& title,
|
||||
double scale_factor = dpi / 96.0;
|
||||
|
||||
HWND window = CreateWindow(
|
||||
window_class, title.c_str(), WS_OVERLAPPEDWINDOW,
|
||||
// window_class, title.c_str(), WS_OVERLAPPEDWINDOW, // window_manager hidden at launch
|
||||
window_class, title.c_str(),
|
||||
WS_OVERLAPPEDWINDOW, // do not add WS_VISIBLE since the window will be shown later
|
||||
Scale(origin.x, scale_factor), Scale(origin.y, scale_factor),
|
||||
Scale(size.width, scale_factor), Scale(size.height, scale_factor),
|
||||
nullptr, nullptr, GetModuleHandle(nullptr), this);
|
||||
|
||||
Reference in New Issue
Block a user