From 327797f5a317b0d0da42ed185c63380d2dc12b1e Mon Sep 17 00:00:00 2001 From: Thell Fowler Date: Tue, 2 Jun 2009 05:26:23 +0000 Subject: [PATCH] [BUGFIX] - Added call to reset tab drag points. - After using the tabPopDropMenu and then clicking a new tab the popup menu would _sometimes_ redisplay. git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@490 f5eea248-9336-0410-98b8-ebc06183d4e3 --- PowerEditor/src/Notepad_plus.cpp | 1 + PowerEditor/src/WinControls/TabBar/TabBar.h | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/PowerEditor/src/Notepad_plus.cpp b/PowerEditor/src/Notepad_plus.cpp index 0c81d329b..01a16686d 100644 --- a/PowerEditor/src/Notepad_plus.cpp +++ b/PowerEditor/src/Notepad_plus.cpp @@ -2375,6 +2375,7 @@ BOOL Notepad_plus::notify(SCNotification *notification) } } //break; + sender->resetDraggingPoint(); return TRUE; } diff --git a/PowerEditor/src/WinControls/TabBar/TabBar.h b/PowerEditor/src/WinControls/TabBar/TabBar.h index eb5399b67..a53759cd6 100644 --- a/PowerEditor/src/WinControls/TabBar/TabBar.h +++ b/PowerEditor/src/WinControls/TabBar/TabBar.h @@ -216,6 +216,11 @@ public : return _draggingPoint; }; + void resetDraggingPoint() { + _draggingPoint.x = 0; + _draggingPoint.y = 0; + }; + static void doOwnerDrawTab() { ::SendMessage(_hwndArray[0], TCM_SETPADDING, 0, MAKELPARAM(6, 0)); for (int i = 0 ; i < _nbCtrl ; i++)