summaryrefslogtreecommitdiff
path: root/src/mir_core
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2015-12-10 18:26:07 +0000
committerGeorge Hazan <george.hazan@gmail.com>2015-12-10 18:26:07 +0000
commit1ad0cdf13bb5c22a08daa9398f51764eb14f69f0 (patch)
tree034568dc9c00d1074b7db49b4d02e79c0c6212d5 /src/mir_core
parent4e2b6ee4835543e3fa34075a853f2357c5fd4d9c (diff)
first version of menu editor with dragging between menus
git-svn-id: http://svn.miranda-ng.org/main/trunk@15836 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'src/mir_core')
-rw-r--r--src/mir_core/src/ui_utils.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mir_core/src/ui_utils.cpp b/src/mir_core/src/ui_utils.cpp
index 8074461f26..2ee00c7c3c 100644
--- a/src/mir_core/src/ui_utils.cpp
+++ b/src/mir_core/src/ui_utils.cpp
@@ -1411,7 +1411,7 @@ HTREEITEM CCtrlTreeView::MoveItemAbove(HTREEITEM hItem, HTREEITEM hInsertAfter)
tvis.itemex.stateMask = tvis.itemex.state;
tvis.itemex.lParam = saveOldData;
- tvis.hParent = NULL;
+ tvis.hParent = GetParent(hInsertAfter);
tvis.hInsertAfter = hInsertAfter;
return InsertItem(&tvis);
}
@@ -1446,7 +1446,7 @@ LRESULT CCtrlTreeView::CustomWndProc(UINT msg, WPARAM wParam, LPARAM lParam)
case WM_LBUTTONUP:
if (m_bDragging) {
SetInsertMark(NULL, 0);
- m_bDragging = 0;
+ m_bDragging = false;
ReleaseCapture();
hti.pt.x = (short)LOWORD(lParam);