git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45841
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
// true if the hash above is not empty
bool m_hasAnyAttr;
// true if the hash above is not empty
bool m_hasAnyAttr;
// used for dragging
wxDragImage *m_dragImage;
// used for dragging
wxDragImage *m_dragImage;
// Virtual root item, if wxTR_HIDE_ROOT is set.
void* m_pVirtualRoot;
// Virtual root item, if wxTR_HIDE_ROOT is set.
void* m_pVirtualRoot;
{
m_textCtrl = NULL;
m_hasAnyAttr = false;
{
m_textCtrl = NULL;
m_hasAnyAttr = false;
m_pVirtualRoot = NULL;
// initialize the global array of events now as it can't be done statically
m_pVirtualRoot = NULL;
// initialize the global array of events now as it can't be done statically
if ( m_dragImage )
{
m_dragImage->Move(wxPoint(x, y));
if ( m_dragImage )
{
m_dragImage->Move(wxPoint(x, y));
+#endif // wxUSE_DRAGIMAGE
break;
case WM_LBUTTONUP:
break;
case WM_LBUTTONUP:
// fall through
case WM_RBUTTONUP:
// fall through
case WM_RBUTTONUP:
if ( m_dragImage )
{
m_dragImage->EndDrag();
if ( m_dragImage )
{
m_dragImage->EndDrag();
// are selected simultaneously which is quite weird
TreeView_SelectDropTarget(GetHwnd(), 0);
}
// are selected simultaneously which is quite weird
TreeView_SelectDropTarget(GetHwnd(), 0);
}
+#endif // wxUSE_DRAGIMAGE
case TVN_BEGINDRAG:
case TVN_BEGINRDRAG:
case TVN_BEGINDRAG:
case TVN_BEGINRDRAG:
if ( event.IsAllowed() )
{
// normally this is impossible because the m_dragImage is
if ( event.IsAllowed() )
{
// normally this is impossible because the m_dragImage is
m_dragImage->BeginDrag(wxPoint(0,0), this);
m_dragImage->Show();
}
m_dragImage->BeginDrag(wxPoint(0,0), this);
m_dragImage->Show();
}
+#endif // wxUSE_DRAGIMAGE
break;
case TVN_DELETEITEM:
break;
case TVN_DELETEITEM: