mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-07-28 22:03:40 -06:00
Docking: Fixed issue with ToolWin being resized when docked
git-svn-id: svn://ultimatepp.org/upp/trunk@6155 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
ead1f0b261
commit
318f32607f
1 changed files with 3 additions and 1 deletions
|
|
@ -84,7 +84,7 @@ void ToolWin::StartMouseDrag()
|
|||
|
||||
void ToolWin::MouseMove(Point, dword)
|
||||
{
|
||||
if(!HasCapture())
|
||||
if(!HasCapture() || GetParent())
|
||||
return;
|
||||
Rect r = rect0;
|
||||
Point off = GetMousePos() - p0;
|
||||
|
|
@ -133,6 +133,8 @@ Image ToolWin::CursorImage(Point, dword)
|
|||
|
||||
Image ToolWin::FrameMouseEvent(int event, Point p, int zdelta, dword keyflags)
|
||||
{
|
||||
if(GetParent())
|
||||
return Image::Arrow();
|
||||
switch(event) {
|
||||
case LEFTDOWN:
|
||||
StartMouseDrag0();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue