]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/regtest/regtest.cpp
more work on wxDC reorganizing
[wxWidgets.git] / samples / regtest / regtest.cpp
index ec9b9799884e7a4eca2a1ccfc3b32b62677c7796..4ead1d3df7226356777b8561a5ef8e100015dd4d 100644 (file)
@@ -714,7 +714,7 @@ void RegTreeCtrl::OnSelChanged(wxTreeEvent& event)
 void RegTreeCtrl::OnItemExpanding(wxTreeEvent& event)
 {
     TreeNode *pNode = GetNode(event);
-    bool bExpanding = event.GetEventType() == wxEVT_TREE_ITEM_EXPANDING;
+    bool bExpanding = event.GetEventType() == wxEVT_COMMAND_TREE_ITEM_EXPANDING;
 
     // expansion might take some time
     wxSetCursor(*wxHOURGLASS_CURSOR);