|
@@ -1062,8 +1062,8 @@ static void ImGui_ImplWin32_CreateWindow(ImGuiViewport* viewport)
|
|
|
// Create window
|
|
|
RECT rect = { (LONG)viewport->Pos.x, (LONG)viewport->Pos.y, (LONG)(viewport->Pos.x + viewport->Size.x), (LONG)(viewport->Pos.y + viewport->Size.y) };
|
|
|
::AdjustWindowRectEx(&rect, vd->DwStyle, FALSE, vd->DwExStyle);
|
|
|
- vd->Hwnd = ::CreateWindowEx(
|
|
|
- vd->DwExStyle, _T("ImGui Platform"), _T("Untitled"), vd->DwStyle, // Style, class name, window name
|
|
|
+ vd->Hwnd = ::CreateWindowExW(
|
|
|
+ vd->DwExStyle, L"ImGui Platform", L"Untitled", vd->DwStyle, // Style, class name, window name
|
|
|
rect.left, rect.top, rect.right - rect.left, rect.bottom - rect.top, // Window area
|
|
|
vd->HwndParent, nullptr, ::GetModuleHandle(nullptr), nullptr); // Owner window, Menu, Instance, Param
|
|
|
vd->HwndOwned = true;
|
|
@@ -1330,8 +1330,8 @@ static LRESULT CALLBACK ImGui_ImplWin32_WndProcHandler_PlatformWindow(HWND hWnd,
|
|
|
|
|
|
static void ImGui_ImplWin32_InitPlatformInterface(bool platform_has_own_dc)
|
|
|
{
|
|
|
- WNDCLASSEX wcex;
|
|
|
- wcex.cbSize = sizeof(WNDCLASSEX);
|
|
|
+ WNDCLASSEXW wcex;
|
|
|
+ wcex.cbSize = sizeof(WNDCLASSEXW);
|
|
|
wcex.style = CS_HREDRAW | CS_VREDRAW | (platform_has_own_dc ? CS_OWNDC : 0);
|
|
|
wcex.lpfnWndProc = ImGui_ImplWin32_WndProcHandler_PlatformWindow;
|
|
|
wcex.cbClsExtra = 0;
|
|
@@ -1341,9 +1341,9 @@ static void ImGui_ImplWin32_InitPlatformInterface(bool platform_has_own_dc)
|
|
|
wcex.hCursor = nullptr;
|
|
|
wcex.hbrBackground = (HBRUSH)(COLOR_BACKGROUND + 1);
|
|
|
wcex.lpszMenuName = nullptr;
|
|
|
- wcex.lpszClassName = _T("ImGui Platform");
|
|
|
+ wcex.lpszClassName = L"ImGui Platform";
|
|
|
wcex.hIconSm = nullptr;
|
|
|
- ::RegisterClassEx(&wcex);
|
|
|
+ ::RegisterClassExW(&wcex);
|
|
|
|
|
|
ImGui_ImplWin32_UpdateMonitors();
|
|
|
|