// occupy
PostSizeEventToParent();
+#if wxUSE_TOOLTIPS
// delete existing tooltips
for (size_t i=0; i<m_tooltips.size(); i++)
{
wxDELETE(m_tooltips[i]);
}
+#endif // wxUSE_TOOLTIPS
wxDELETE(m_pDC);
}
// keep in synch also our m_tooltips array
+#if wxUSE_TOOLTIPS
// reset all current tooltips
for (size_t i=0; i<m_tooltips.size(); i++)
{
// shrink/expand the array:
m_tooltips.resize(nFields, NULL);
+#endif // wxUSE_TOOLTIPS
wxStatusBarBase::SetFieldsCount(nFields, widths);
style = SBT_NOBORDERS;
break;
+ case wxSB_SUNKEN:
case wxSB_NORMAL:
default:
style = 0;
// Set the status text in the native control passing both field number and style.
// NOTE: MSDN library doesn't mention that nField and style have to be 'ORed'
- if ( !StatusBar_SetText(GetHwnd(), nField | style, text.wx_str()) )
+ if ( !StatusBar_SetText(GetHwnd(), nField | style, text.t_str()) )
{
wxLogLastError("StatusBar_SetText");
}
+#if wxUSE_TOOLTIPS
if (HasFlag(wxSTB_SHOW_TIPS))
{
wxASSERT(m_tooltips.size() == m_panes.GetCount());
//else: leave m_tooltips[nField]==NULL
}
}
+#endif // wxUSE_TOOLTIPS
}
wxStatusBar::MSWBorders wxStatusBar::MSWGetBorders() const
// into account to make sure the text drawn by user fits inside the
// pane. Notice that it's not the value returned by SB_GETBORDERS
// which, at least on this Windows 2003 system, returns {0, 2, 2}
+#if wxUSE_UXTHEME
if ( wxUxThemeEngine::GetIfActive() )
{
s_metrics.gripWidth = 20;
s_metrics.textMargin = 8;
}
else // classic/unthemed look
+#endif // wxUSE_UXTHEME
{
s_metrics.gripWidth = 18;
s_metrics.textMargin = 4;
case wxSB_FLAT:
style = SBT_NOBORDERS;
break;
+ case wxSB_SUNKEN:
case wxSB_NORMAL:
default:
style = 0;
// the fields' styles.
// NOTE: MSDN library doesn't mention that nField and style have to be 'ORed'
wxString text = GetStatusText(i);
- if (!StatusBar_SetText(GetHwnd(), style | i, text.wx_str()))
+ if (!StatusBar_SetText(GetHwnd(), style | i, text.t_str()))
{
wxLogLastError("StatusBar_SetText");
}