X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b8fbf1a035db2af6d3aba89203263a4711cb7c53..4eb7c4b180d2ddf44f9b82e5d56c81fcdc530f64:/src/common/treebase.cpp diff --git a/src/common/treebase.cpp b/src/common/treebase.cpp index 0a49f60cf8..4c07404f5a 100644 --- a/src/common/treebase.cpp +++ b/src/common/treebase.cpp @@ -17,7 +17,7 @@ // headers // ----------------------------------------------------------------------------- -#ifdef __GNUG__ +#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) #pragma implementation "treebase.h" #endif @@ -37,7 +37,6 @@ #include "wx/dynarray.h" #include "wx/arrimpl.cpp" #include "wx/dcclient.h" -#include "wx/msgdlg.h" // ---------------------------------------------------------------------------- @@ -62,6 +61,8 @@ DEFINE_EVENT_TYPE(wxEVT_COMMAND_TREE_ITEM_ACTIVATED) DEFINE_EVENT_TYPE(wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK) DEFINE_EVENT_TYPE(wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK) DEFINE_EVENT_TYPE(wxEVT_COMMAND_TREE_END_DRAG) +DEFINE_EVENT_TYPE(wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK) +DEFINE_EVENT_TYPE(wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP) // ---------------------------------------------------------------------------- // Tree event @@ -73,8 +74,8 @@ IMPLEMENT_DYNAMIC_CLASS(wxTreeEvent, wxNotifyEvent) wxTreeEvent::wxTreeEvent(wxEventType commandType, int id) : wxNotifyEvent(commandType, id) { - m_code = 0; m_itemOld = 0l; + m_editCancelled = FALSE; } #endif // wxUSE_TREECTRL