diff options
author | George Hazan <george.hazan@gmail.com> | 2015-12-10 18:26:07 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2015-12-10 18:26:07 +0000 |
commit | 1ad0cdf13bb5c22a08daa9398f51764eb14f69f0 (patch) | |
tree | 034568dc9c00d1074b7db49b4d02e79c0c6212d5 /src/mir_core | |
parent | 4e2b6ee4835543e3fa34075a853f2357c5fd4d9c (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.cpp | 4 |
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);
|