git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@11439
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
void MyFrame::OnToggleButtons(wxCommandEvent& event)
{
void MyFrame::OnToggleButtons(wxCommandEvent& event)
{
+#if USE_GENERIC_TREECTRL || !defined(__WXMSW__)
if ( wxGetApp().ShowButtons() )
{
m_treeCtrl->CreateButtonsImageList(-1);
if ( wxGetApp().ShowButtons() )
{
m_treeCtrl->CreateButtonsImageList(-1);
m_treeCtrl->CreateButtonsImageList(15);
wxGetApp().SetShowButtons(TRUE);
}
m_treeCtrl->CreateButtonsImageList(15);
wxGetApp().SetShowButtons(TRUE);
}
}
void MyFrame::OnCollapseAndReset(wxCommandEvent& event)
}
void MyFrame::OnCollapseAndReset(wxCommandEvent& event)
void MyTreeCtrl::CreateButtonsImageList(int size)
{
void MyTreeCtrl::CreateButtonsImageList(int size)
{
+#if USE_GENERIC_TREECTRL || !defined(__WXMSW__)
if ( size == -1 )
{
SetButtonsImageList(NULL);
if ( size == -1 )
{
SetButtonsImageList(NULL);
#endif // MSW/!MSW
AssignButtonsImageList(images);
#endif // MSW/!MSW
AssignButtonsImageList(images);
}
MyTreeCtrl::~MyTreeCtrl()
}
MyTreeCtrl::~MyTreeCtrl()