#endif
#include "wx/evtloop.h"
-#include "wx/ptr_scpd.h"
+#include "wx/scopedptr.h"
// ----------------------------------------------------------------------------
// wxWin macros
bool wxDialog::Show(bool show)
{
+ if (show && CanDoLayoutAdaptation())
+ DoLayoutAdaptation();
+
return wxTopLevelWindowPalm::Show (show);
}
// show dialog modally
int wxDialog::ShowModal()
{
+ Show (true);
+
if (errNone == FrmDoDialog ((FormType *)wxTopLevelWindow::GetForm())) {
return 0;
}