]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/statusbar.cpp
Regenerated makefiles after removing USE_GDIPLUS.
[wxWidgets.git] / src / msw / statusbar.cpp
index 663c7f6505832cdea40f10d4bc266f3f2ed453a9..8aa705c35ebb51f69c5f48e3407cd0f54ae3adda 100644 (file)
@@ -104,6 +104,12 @@ bool wxStatusBar::Create(wxWindow *parent,
     if ( style & wxCLIP_SIBLINGS )
         wstyle |= WS_CLIPSIBLINGS;
 
+    // wxSTB_SIZEGRIP is part of our default style but it doesn't make sense to
+    // show size grip if this is the status bar of a non-resizeable TLW so turn
+    // it off in such case
+    if ( parent->IsTopLevel() && !parent->HasFlag(wxRESIZE_BORDER) )
+        style &= ~wxSTB_SIZEGRIP;
+
     // setting SBARS_SIZEGRIP is perfectly useless: it's always on by default
     // (at least in the version of comctl32.dll I'm using), and the only way to
     // turn it off is to use CCS_TOP style - as we position the status bar
@@ -316,7 +322,7 @@ void wxStatusBar::DoUpdateStatusText(int nField)
                                      *m_pDC,
                                      ellmode,
                                      maxWidth,
-                                     wxELLIPSIZE_EXPAND_TAB);
+                                     wxELLIPSIZE_FLAGS_EXPAND_TABS);
 
         // update the ellipsization status for this pane; this is used later to
         // decide whether a tooltip should be shown or not for this pane