use ShowWindow with SW_HIDE #8257
kahotv
started this conversation in
Build/Link/Run/Fonts issues ONLY!
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In the example_win32_directx11 project, change
::ShowWindow(hwnd, SW_SHOWDEFAULT);
to::ShowWindow(hwnd, SW_HIDE);
and delete the automatically generated imgui.ini file. After compiling and running the program, the ImGui window will not appear.By comparing imgui.ini, it was found that manually adding ViewportPos and ViewportId can solve this issue. So, how can ViewportPos and ViewportId be automatically added when using SW_HIDE? Especially when running for the first time, at which point there is no imgui.ini file.
Beta Was this translation helpful? Give feedback.
All reactions