#endif
#ifndef WX_PRECOMP
-#include "wx/wx.h"
+#include "wx/settings.h"
+#include "wx/window.h"
+#include "wx/dcclient.h"
+#include "wx/dcmemory.h"
#endif
#if wxUSE_TOOLBAR
void wxToolBarSimple::ToggleTool(int index, bool toggle)
{
- wxNode *node = m_tools.Find((long)index);
+ wxNode *node = (wxNode*) NULL;
+ node = m_tools.Find((long)index);
if (node)
{
wxToolBarTool *tool = (wxToolBarTool *)node->Data();
//
void wxToolBarSimple::SpringUpButton(int index)
{
- wxNode *node=m_tools.Find((long)index);
+ wxNode *node = (wxNode*) NULL;
+ node=m_tools.Find((long)index);
if (node) {
wxToolBarTool *tool = (wxToolBarTool *)node->Data();
if (tool && !tool->m_isToggle && tool->m_toggleState){
}
}
-void wxToolBarSimple::Layout(void)
+void wxToolBarSimple::LayoutTools(void)
{
m_currentRowsOrColumns = 0;
m_lastX = m_xMargin;