/////////////////////////////////////////////////////////////////////////////
// Name: xh_tglbtn.cpp
-// Purpose: XRC resource for wxCheckBox
+// Purpose: XRC resource for wxToggleButton
// Author: Bob Mitchell
// Created: 2000/03/21
// RCS-ID: $Id$
#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();
}