summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
d43eb2a)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44444
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
- Implemented support for underlined fonts in wxStaticText
- wxTopLevelWindow::SetSizeHints size increments now work
- wxTopLevelWindow::GetSize() returns the size including the WM decorations
- Implemented support for underlined fonts in wxStaticText
- wxTopLevelWindow::SetSizeHints size increments now work
- wxTopLevelWindow::GetSize() returns the size including the WM decorations
+- wxTopLevelWindow::GetClientSize() returns 0x0 when the window is minimized
area which may be drawn on by the programmer, excluding title bar, border,
scrollbars, etc.
area which may be drawn on by the programmer, excluding title bar, border,
scrollbars, etc.
+Note that if this window is a top-level one and it is currently minimized, the
+return size is empty (both width and height are $0$).
+
\wxheading{Parameters}
\docparam{width}{Receives the client width in pixels.}
\wxheading{Parameters}
\docparam{width}{Receives the client width in pixels.}
void wxTopLevelWindowGTK::DoGetClientSize( int *width, int *height ) const
{
void wxTopLevelWindowGTK::DoGetClientSize( int *width, int *height ) const
{
+ if ( IsIconized() )
+ {
+ // for consistency with wxMSW, client area is supposed to be empty for
+ // the iconized windows
+ if ( width )
+ *width = 0;
+ if ( height )
+ *height = 0;
+
+ return;
+ }
+
wxASSERT_MSG( (m_widget != NULL), wxT("invalid frame") );
if (height)
wxASSERT_MSG( (m_widget != NULL), wxT("invalid frame") );
if (height)