]> git.saurik.com Git - wxWidgets.git/commitdiff
compilation fix for genericTreeCtrl-only stuff
authorVáclav Slavík <vslavik@fastmail.fm>
Wed, 22 Aug 2001 22:13:06 +0000 (22:13 +0000)
committerVáclav Slavík <vslavik@fastmail.fm>
Wed, 22 Aug 2001 22:13:06 +0000 (22:13 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@11439 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

samples/treectrl/treectrl.cpp

index 9c7c1c0d637fbb0a18f538d52d440dfbd446ce6b..5f69e18e1cdd2df518dde9e1f0dc61b5ece40904 100644 (file)
@@ -484,6 +484,7 @@ void MyFrame::OnToggleImages(wxCommandEvent& event)
 
 void MyFrame::OnToggleButtons(wxCommandEvent& event)
 {
+#if USE_GENERIC_TREECTRL || !defined(__WXMSW__)
     if ( wxGetApp().ShowButtons() )
     {
         m_treeCtrl->CreateButtonsImageList(-1);
@@ -494,6 +495,7 @@ void MyFrame::OnToggleButtons(wxCommandEvent& event)
         m_treeCtrl->CreateButtonsImageList(15);
         wxGetApp().SetShowButtons(TRUE);
     }
+#endif
 }
 
 void MyFrame::OnCollapseAndReset(wxCommandEvent& event)
@@ -632,6 +634,7 @@ void MyTreeCtrl::CreateImageList(int size)
 
 void MyTreeCtrl::CreateButtonsImageList(int size)
 {
+#if USE_GENERIC_TREECTRL || !defined(__WXMSW__)
     if ( size == -1 )
     {
         SetButtonsImageList(NULL);
@@ -672,6 +675,7 @@ void MyTreeCtrl::CreateButtonsImageList(int size)
 #endif // MSW/!MSW
 
     AssignButtonsImageList(images);
+#endif
 }
 
 MyTreeCtrl::~MyTreeCtrl()