X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/69d90995bb90845723261e29b3895f3004887881..46d492a879f7fec474c0847dd0637593453746eb:/include/wx/window.h diff --git a/include/wx/window.h b/include/wx/window.h index 795fe59b75..bd26e0c557 100644 --- a/include/wx/window.h +++ b/include/wx/window.h @@ -100,7 +100,6 @@ WXDLLEXPORT_DATA(extern wxWindowList) wxTopLevelWindows; enum wxWindowVariant { - wxWINDOW_VARIANT_DEFAULT, // Default size (usually == normal, may be set by a wxSystemOptions entry) wxWINDOW_VARIANT_NORMAL, // Normal size wxWINDOW_VARIANT_SMALL, // Smaller size (about 25 % smaller than normal ) wxWINDOW_VARIANT_MINI, // Mini size (about 33 % smaller than normal ) @@ -1057,11 +1056,10 @@ protected: // specified) border for the window class virtual wxBorder GetDefaultBorder() const; - // Get the default size for the new window if no explicit size given If - // there are better default sizes then these can be changed, just as long - // as they are not too small for TLWs. - static int WidthDefault(int w) { return w == -1 ? 400 : w; } - static int HeightDefault(int h) { return h == -1 ? 250 : h; } + // Get the default size for the new window if no explicit size given. TLWs + // have their own default size so this is just for non top-level windows. + static int WidthDefault(int w) { return w == -1 ? 20 : w; } + static int HeightDefault(int h) { return h == -1 ? 20 : h; } // set the best size for the control if the default size was given: // replaces the fields of size == -1 with the best values for them and