简体   繁体   中英

Remove Title Bar in ImGui

I would like to know that how do I remove the title bar from an ImGui Window. I am using C++ with GLFW for this.

You can use the ImGuiWindowFlags_NoTitleBar flag when creating the window:

ImGui::Begin("Window Name", &is_open, ImGuiWindowFlags_NoTitleBar);
// ... render window contents ...
ImGui::End();

An example of this and other flags you can use on an ImGui Window is located in imgui_demo.cpp .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM