]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/toplevel.cpp
0.1.8-3
[wxWidgets.git] / src / msw / toplevel.cpp
index a3b75ce292175cce5a25bc39373e7a4e91b1f49e..4da7baf52816be25353c11a51a1ace4df437e400 100644 (file)
@@ -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
 // ----------------------------------------------------------------------------