Hello,
LoadDialogResource() and LayoutFlushGroup() should work perfectly fine together. Typically LayoutFlushGroup() is called in reaction to some user interaction or in InitValues():
Bool CreateLayout()
{
if (!GeDialog::CreateLayout())
return false;
if (!LoadDialogResource(11000, nullptr, 0))
return false;
return true;
}
Bool InitValues()
{
LayoutFlushGroup(11003);
AddButton(100, BFH_SCALEFIT, 0, 10, "Button"_s);
LayoutChanged(11003);
return true;
}
best wishes,
Sebastian