#include "wx/bmpbuttn.h"
#include "wx/settings.h"
#include "wx/dcscreen.h"
+ #include "wx/dcclient.h"
#endif
#include "wx/stockitem.h"
wxCoord wBtn,
hBtn;
- dc.GetMultiLineTextExtent(GetLabel(), &wBtn, &hBtn);
+ dc.GetMultiLineTextExtent(wxStripMenuCodes(GetLabel()), &wBtn, &hBtn);
// add a margin -- the button is wider than just its label
wBtn += 3*GetCharWidth();