// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
-#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
-#pragma implementation "stattext.h"
-#endif
-
// For compilers that support precompilation, includes "wx.h".
#include "wx/wxprec.h"
else
msStyle |= SS_LEFT;
+ // this style is necessary to receive mouse events
+ msStyle |= SS_NOTIFY;
+
return msStyle;
}
dc.SetFont(font);
wxCoord widthTextMax, heightTextTotal;
- dc.GetMultiLineTextExtent(GetLabel(), &widthTextMax, &heightTextTotal);
+ dc.GetMultiLineTextExtent(::wxStripMenuCodes(GetLabel()),
+ &widthTextMax, &heightTextTotal);
#ifdef __WXWINCE__
if ( widthTextMax )