// occupy
PostSizeEventToParent();
+ // delete existing tooltips
+ for (size_t i=0; i<m_tooltips.size(); i++)
+ {
+ if (m_tooltips[i])
+ {
+ delete m_tooltips[i];
+ m_tooltips[i] = NULL;
+ }
+ }
+
wxDELETE(m_pDC);
}
// reset all current tooltips
for (size_t i=0; i<m_tooltips.size(); i++)
{
- delete m_tooltips[i];
- m_tooltips[i] = NULL;
+ if (m_tooltips[i])
+ {
+ delete m_tooltips[i];
+ m_tooltips[i] = NULL;
+ }
}
// shrink/expand the array:
return wxWindow::MSWProcessMessage(pMsg);
}
-bool wxStatusBar::MSWOnNotify(int WXUNUSED(idCtrl), WXLPARAM lParam, WXLPARAM* WXUNUSED(result));
+bool wxStatusBar::MSWOnNotify(int WXUNUSED(idCtrl), WXLPARAM lParam, WXLPARAM* WXUNUSED(result))
{
if ( HasFlag(wxSTB_SHOW_TIPS) )
{