void MyFrame::OnToggleButtons(wxCommandEvent& event)
{
+#if USE_GENERIC_TREECTRL || !defined(__WXMSW__)
if ( wxGetApp().ShowButtons() )
{
m_treeCtrl->CreateButtonsImageList(-1);
m_treeCtrl->CreateButtonsImageList(15);
wxGetApp().SetShowButtons(TRUE);
}
+#endif
}
void MyFrame::OnCollapseAndReset(wxCommandEvent& event)
void MyTreeCtrl::CreateButtonsImageList(int size)
{
+#if USE_GENERIC_TREECTRL || !defined(__WXMSW__)
if ( size == -1 )
{
SetButtonsImageList(NULL);
#endif // MSW/!MSW
AssignButtonsImageList(images);
+#endif
}
MyTreeCtrl::~MyTreeCtrl()