]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/statbr95.cpp
Printing improvements: GetPageInfo() gets called after the DC has
[wxWidgets.git] / src / msw / statbr95.cpp
index d28a6b8ae85c9c5a8f4583087472fbb7992cd26b..2687370ef44c04d9638e49a49f2d0fe9b64c83e6 100644 (file)
@@ -96,9 +96,11 @@ bool wxStatusBar95::Create(wxWindow *parent,
     }
     else
     {
+#ifndef __WXWINCE__
         // may be some versions of comctl32.dll do need it - anyhow, it won't
         // do any harm
         wstyle |= SBARS_SIZEGRIP;
+#endif
     }
 
     m_hWnd = (WXHWND)CreateStatusWindow(wstyle,
@@ -189,8 +191,7 @@ wxString wxStatusBar95::GetStatusText(int nField) const
     int len = StatusBar_GetTextLen(GetHwnd(), nField);
     if ( len > 0 )
     {
-        StatusBar_GetText(GetHwnd(), nField, str.GetWriteBuf(len));
-        str.UngetWriteBuf();
+        StatusBar_GetText(GetHwnd(), nField, wxStringBuffer(str, len));
     }
 
     return str;