-
-
Notifications
You must be signed in to change notification settings - Fork 10.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I made a Custom Windows Titlebar in ImGui #6951
Comments
Hi, please post this in the Gallery instead |
Hello, Thanks for sharing your code. I think this align with the general sentiment of #3680 #3350, and generally adding more imgui->platform forwarding controls such as the ability to move a platform window but also minimize/maximize (#3486). Also see e.g. #6162 which has code. I'm all for our multi-viewport system and backends supporting ways to do this, but we'd need sensible cross-platform solution which are more work. I think I will work on a Windows only proof of concept for this so I have more understanding of what dear imgui could provide and so we could share correct code. As per your code, I can see a few issues:
|
ImGui is an incredible framework for our cross platform GUI. We are also realizing that each OS user expects the windows (multi viewports) to behave more like a native window, implementing minimize etc from the title bar. Has there been any progress on this front? We'd be happy to sponsor efforts here if it's possible. |
I would like to use ImGUI as GUI for normal desktop applications, but dont really like the Windows default Titlebar and so made my own:
2023-10-22.21-36-21.mp4
ImGUI: v1.89.9
Render: DirectX 9 (something that old PC still support, as I think OpenGL might not be supported by some old hardware).
(but as most code is Windows API dependet, this should also work on other Renders)
Includes:
Code:
Modified WndProc Function form Dx9 Example to Achieve this
Should work for Windows Vista/7/8/10
Maybe this can be added into IMGUI, but should maybe be improved/optimized...
The text was updated successfully, but these errors were encountered: