mirror of
https://github.com/reactos/reactos.git
synced 2025-08-06 12:53:09 +00:00
[MSPAINT] Allow paletteWindow to be bottom-aligned (#5216)
The user will be able to move the palette window to bottom by dragging. - Add Bar1ID registry setting. - Move paletteWindow to top or bottom in mainWindow's WM_SIZE handling. - Track the mouse dragging on paletteWindow. - If the dragging is beyond the center point, then move paletteWindow. CORE-18867
This commit is contained in:
parent
ccef43f3b0
commit
d0c657074d
6 changed files with 74 additions and 6 deletions
|
@ -147,7 +147,7 @@ LRESULT CToolBox::OnMouseMove(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL& bHa
|
|||
RECT rc;
|
||||
mainWindow.GetWindowRect(&rc);
|
||||
|
||||
POINT ptCenter = { (rc.left + rc.right) / 2, (rc.bottom - rc.top) / 2 };
|
||||
POINT ptCenter = { (rc.left + rc.right) / 2, (rc.top + rc.bottom) / 2 };
|
||||
|
||||
DWORD dwExpectedBar2ID = ((pt.x < ptCenter.x) ? BAR2ID_LEFT : BAR2ID_RIGHT);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue