if ( ms_drawDecorations )
{
int w, h;
- // VS: we can't use real client area size in 'rect', because
- // wxTLWNative::DoGetClientSize calls GetClientAreaOrigin
- // under wxMSW which in turn calls DoGetClientSize...
- // inifinite recursion
- #if 0
wxTopLevelWindowNative::DoGetClientSize(&w, &h);
- #else
- w = h = 500;
- #endif
wxRect rect = wxRect(wxTopLevelWindowNative::GetClientAreaOrigin(),
wxSize(w, h));
rect = m_renderer->GetFrameClientArea(rect,
return m_renderer->HitTestFrame(rect, pt+GetClientAreaOrigin(), GetDecorationsStyle());
}
+int wxTopLevelWindow::GetMinWidth() const
+{
+ if ( ms_drawDecorations )
+ {
+ return wxMax(wxTopLevelWindowNative::GetMinWidth(),
+ m_renderer->GetFrameMinSize(GetDecorationsStyle()).x);
+ }
+ else
+ return wxTopLevelWindowNative::GetMinWidth();
+}
+
+int wxTopLevelWindow::GetMinHeight() const
+{
+ if ( ms_drawDecorations )
+ {
+ return wxMax(wxTopLevelWindowNative::GetMinHeight(),
+ m_renderer->GetFrameMinSize(GetDecorationsStyle()).y);
+ }
+ else
+ return wxTopLevelWindowNative::GetMinHeight();
+}
+
// ----------------------------------------------------------------------------
// icons
// ----------------------------------------------------------------------------