How to have a CollapsingHeader opened at start?

Hello,

I use a CollapsingHeader and I would like it to be opened when the GUI starts. I don’t find which flag to use. ImGuiTreeNodeFlags_Leaf is just making it open forever.

Thank you in advance for your help.
Best regards,
Barth

You can use ImGuiTreeNodeFlags_DefaultOpen

Or SetNextTreeNodeOpen() as well.

Thank you very much, not sure how I could miss that in the list of options !