diff --git a/include/wx/msw/toplevel.h b/include/wx/msw/toplevel.h index ff20508a5a..fdca302814 100644 --- a/include/wx/msw/toplevel.h +++ b/include/wx/msw/toplevel.h @@ -129,8 +129,10 @@ protected: // override those to return the normal window coordinates even when the // window is minimized +#ifndef __WXWINCE__ virtual void DoGetPosition(int *x, int *y) const; virtual void DoGetSize(int *width, int *height) const; +#endif // __WXWINCE__ // is the window currently iconized? diff --git a/src/msw/toplevel.cpp b/src/msw/toplevel.cpp index a3b75ce292..4da7baf528 100644 --- a/src/msw/toplevel.cpp +++ b/src/msw/toplevel.cpp @@ -784,11 +784,10 @@ void wxTopLevelWindowMSW::SetLayoutDirection(wxLayoutDirection dir) // wxTopLevelWindowMSW geometry // ---------------------------------------------------------------------------- -void wxTopLevelWindowMSW::DoGetPosition(int *x, int *y) const -{ - #ifndef __WXWINCE__ +void wxTopLevelWindowMSW::DoGetPosition(int *x, int *y) const +{ if ( IsIconized() ) { WINDOWPLACEMENT wp; @@ -824,15 +823,11 @@ void wxTopLevelWindowMSW::DoGetPosition(int *x, int *y) const } //else: normal case -#endif // __WXWINCE__ - wxTopLevelWindowBase::DoGetPosition(x, y); } void wxTopLevelWindowMSW::DoGetSize(int *width, int *height) const { -#ifndef __WXWINCE__ - if ( IsIconized() ) { WINDOWPLACEMENT wp; @@ -853,11 +848,11 @@ void wxTopLevelWindowMSW::DoGetSize(int *width, int *height) const } //else: normal case -#endif - wxTopLevelWindowBase::DoGetSize(width, height); } +#endif // __WXWINCE__ + // ---------------------------------------------------------------------------- // wxTopLevelWindowMSW fullscreen // ----------------------------------------------------------------------------