WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Commit dc09ccb

Browse files
committed
xxx
1 parent 42e91c3 commit dc09ccb

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

backends/imgui_impl_win32.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -898,7 +898,7 @@ IMGUI_IMPL_API LRESULT ImGui_ImplWin32_WndProcHandlerEx(HWND hwnd, UINT msg, WPA
898898
{
899899
// Handling WM_IME_COMPOSITION ensure that WM_IME_CHAR value is correct even for MBCS apps.
900900
// (see #9099, #3653 and https://stackoverflow.com/questions/77450354 topics)
901-
LRESULT result = ::DefWindowProcW(hwnd, msg, wParam, lParam);
901+
LRESULT result = ::DefWindowProc(hwnd, msg, wParam, lParam);
902902
return (lParam & GCS_RESULTSTR) ? 1 : result;
903903
}
904904
case WM_IME_CHAR:
@@ -1158,7 +1158,7 @@ static void ImGui_ImplWin32_CreateWindow(ImGuiViewport* viewport)
11581158
// Create window
11591159
RECT rect = { (LONG)viewport->Pos.x, (LONG)viewport->Pos.y, (LONG)(viewport->Pos.x + viewport->Size.x), (LONG)(viewport->Pos.y + viewport->Size.y) };
11601160
::AdjustWindowRectEx(&rect, vd->DwStyle, FALSE, vd->DwExStyle);
1161-
vd->Hwnd = ::CreateWindowExW(
1161+
vd->Hwnd = ::CreateWindowEx(
11621162
vd->DwExStyle, L"ImGui Platform", L"Untitled", vd->DwStyle, // Style, class name, window name
11631163
rect.left, rect.top, rect.right - rect.left, rect.bottom - rect.top, // Window area
11641164
vd->HwndParent, nullptr, ::GetModuleHandle(nullptr), nullptr); // Owner window, Menu, Instance, Param
@@ -1391,7 +1391,7 @@ static LRESULT CALLBACK ImGui_ImplWin32_WndProcHandler_PlatformWindow(HWND hWnd,
13911391
// Allow secondary viewport WndProc to be called regardless of current context
13921392
ImGuiContext* ctx = (ImGuiContext*)::GetPropA(hWnd, "IMGUI_CONTEXT");
13931393
if (ctx == NULL)
1394-
return ::DefWindowProcW(hWnd, msg, wParam, lParam); // unlike ImGui_ImplWin32_WndProcHandler() we are called directly by Windows, we can't just return 0.
1394+
return ::DefWindowProc(hWnd, msg, wParam, lParam); // unlike ImGui_ImplWin32_WndProcHandler() we are called directly by Windows, we can't just return 0.
13951395

13961396
ImGuiIO& io = ImGui::GetIO(ctx);
13971397
ImGuiPlatformIO& platform_io = ImGui::GetPlatformIO(ctx);
@@ -1426,7 +1426,7 @@ static LRESULT CALLBACK ImGui_ImplWin32_WndProcHandler_PlatformWindow(HWND hWnd,
14261426
}
14271427
}
14281428
if (result == 0)
1429-
result = ::DefWindowProcW(hWnd, msg, wParam, lParam);
1429+
result = ::DefWindowProc(hWnd, msg, wParam, lParam);
14301430
return result;
14311431
}
14321432

0 commit comments

Comments
 (0)