// resizeable or not (but a resizeable dialog always has caption -
// otherwise it would look too strange)
const wxChar *dlg;
- if ( style & wxTHICK_FRAME )
- dlg = _T("wxResizeableDialog");
+ if ( style & wxRESIZE_BORDER )
+ dlg = T("wxResizeableDialog");
else if ( style & wxCAPTION )
- dlg = _T("wxCaptionDialog");
+ dlg = T("wxCaptionDialog");
else
- dlg = _T("wxNoCaptionDialog");
+ dlg = T("wxNoCaptionDialog");
MSWCreate(m_windowId, parent, NULL, this, NULL,
x, y, width, height,
0, // style is not used if we have dlg template
return m_isShown;
}
+bool wxDialog::IsModal() const
+{
+ return wxModalDialogs.Find((wxDialog *)this) != 0; // const_cast
+}
+
bool wxDialog::Show(bool show)
{
m_isShown = show;