c++glfwtitlebarimgui

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.


Solution

  • 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.