[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
This commit is contained in:
Thell Fowler 2009-06-02 05:26:23 +00:00
parent 15f2fccbbb
commit 327797f5a3
2 changed files with 6 additions and 0 deletions

View File

@ -2375,6 +2375,7 @@ BOOL Notepad_plus::notify(SCNotification *notification)
} }
} }
//break; //break;
sender->resetDraggingPoint();
return TRUE; return TRUE;
} }

View File

@ -216,6 +216,11 @@ public :
return _draggingPoint; return _draggingPoint;
}; };
void resetDraggingPoint() {
_draggingPoint.x = 0;
_draggingPoint.y = 0;
};
static void doOwnerDrawTab() { static void doOwnerDrawTab() {
::SendMessage(_hwndArray[0], TCM_SETPADDING, 0, MAKELPARAM(6, 0)); ::SendMessage(_hwndArray[0], TCM_SETPADDING, 0, MAKELPARAM(6, 0));
for (int i = 0 ; i < _nbCtrl ; i++) for (int i = 0 ; i < _nbCtrl ; i++)