#include "wx/xrc/xh_tglbtn.h"
#include "wx/tglbtn.h"
+#include "wx/button.h" // solely for wxBU_EXACTFIT
IMPLEMENT_DYNAMIC_CLASS(wxToggleButtonXmlHandler, wxXmlResourceHandler)
wxToggleButtonXmlHandler::wxToggleButtonXmlHandler()
-: wxXmlResourceHandler()
+ : wxXmlResourceHandler()
{
+ XRC_ADD_STYLE(wxBU_EXACTFIT);
+
AddWindowStyles();
}