Examples: uses SetNextWindowPos/SetNextWindowSize when applicable

This commit is contained in:
ocornut
2015-03-16 11:53:36 +00:00
parent 04358c301e
commit cb285c4d35
5 changed files with 9 additions and 5 deletions

View File

@ -188,7 +188,8 @@ int main(int, char**)
// 2. Show another simple window, this time using an explicit Begin/End pair
if (show_another_window)
{
ImGui::Begin("Another Window", &show_another_window, ImVec2(200,100));
ImGui::SetNextWindowSize(ImVec2(200,100), ImGuiSetCond_FirstUseEver);
ImGui::Begin("Another Window", &show_another_window);
ImGui::Text("Hello");
ImGui::End();
}