BWindow's frame events hooks work now. Frame gets updated on window move/resize.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12073 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Adi Oanca 2005-03-27 12:16:31 +00:00
parent 867b420067
commit 27e3da2fac

View File

@ -704,8 +704,10 @@ void BWindow::DispatchMessage(BMessage *msg, BHandler *target)
msg->FindFloat("width", &width);
msg->FindFloat("height", &height);
ResizeTo(width,height);
fFrame.right = fFrame.left + width;
fFrame.bottom = fFrame.top + height;
FrameResized(width,height);
break;
}
@ -714,8 +716,9 @@ void BWindow::DispatchMessage(BMessage *msg, BHandler *target)
BPoint origin;
msg->FindPoint("where", &origin);
MoveTo( origin );
fFrame.OffsetTo(origin);
FrameMoved( origin );
break;
}