mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 10:04:49 +00:00
[MSPAINT] Add border width to tool box (#5780)
Make tool box pixel-perfect. Add two border widths to the tool box. CORE-19217
This commit is contained in:
parent
63aef3e1fc
commit
611d89eb8b
1 changed files with 6 additions and 1 deletions
|
@ -34,7 +34,12 @@ CPaintToolBar::ToolBarWndProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam
|
|||
BOOL CPaintToolBar::DoCreate(HWND hwndParent)
|
||||
{
|
||||
// NOTE: The horizontal line above the toolbar is hidden by CCS_NODIVIDER style.
|
||||
RECT toolbarPos = { 0, 0, CX_TOOLBAR, CY_TOOLBAR };
|
||||
RECT toolbarPos =
|
||||
{
|
||||
0, 0,
|
||||
CX_TOOLBAR + 2 * GetSystemMetrics(SM_CXBORDER),
|
||||
CY_TOOLBAR + 2 * GetSystemMetrics(SM_CYBORDER)
|
||||
};
|
||||
DWORD style = WS_CHILD | WS_VISIBLE | CCS_NOPARENTALIGN | CCS_VERT | CCS_NORESIZE |
|
||||
TBSTYLE_TOOLTIPS | TBSTYLE_FLAT;
|
||||
if (!CWindow::Create(TOOLBARCLASSNAME, hwndParent, toolbarPos, NULL, style))
|
||||
|
|
Loading…
Reference in a new issue