#if wxUSE_TOOLBOOK
+#ifndef WX_PRECOMP
+ #include "wx/icon.h"
+ #include "wx/settings.h"
+ #include "wx/toolbar.h"
+#endif
+
#include "wx/imaglist.h"
-#include "wx/icon.h"
-#include "wx/toolbar.h"
-#include "wx/toolbook.h"
-#include "wx/settings.h"
#include "wx/sysopt.h"
+#include "wx/toolbook.h"
// ----------------------------------------------------------------------------
// various wxWidgets macros
// change wasn't allowed, return to previous state
if (m_selection != selNew)
+ {
GetToolBar()->ToggleTool(m_selection, false);
+ }
}
#endif // wxUSE_TOOLBOOK