https://git.reactos.org/?p=reactos.git;a=commitdiff;h=22d1e1017f8ca89aae73c2...
commit 22d1e1017f8ca89aae73c2bb9131155cb20f96a2 Author: Giannis Adamopoulos gadamopoulos@reactos.org AuthorDate: Mon Jan 29 17:28:29 2018 +0200 Commit: Giannis Adamopoulos gadamopoulos@reactos.org CommitDate: Mon Jan 29 17:30:44 2018 +0200
[EXPLORER] CNotifyToolbar: Set TBMETRICS::cxBarPad and TBMETRICS::cyBarPad MSDN says that these values are not used but apparently they are used as a padding around the buttons. This helps to center the buttons in the notification area. --- base/shell/explorer/syspager.cpp | 2 ++ 1 file changed, 2 insertions(+)
diff --git a/base/shell/explorer/syspager.cpp b/base/shell/explorer/syspager.cpp index 45f17023b9..4656d8f6fa 100644 --- a/base/shell/explorer/syspager.cpp +++ b/base/shell/explorer/syspager.cpp @@ -1189,6 +1189,8 @@ void CNotifyToolbar::Initialize(HWND hWndParent, CBalloonQueue * queue) tbm.dwMask = TBMF_BARPAD | TBMF_BUTTONSPACING | TBMF_PAD; tbm.cxPad = 1; tbm.cyPad = 1; + tbm.cxBarPad = 1; + tbm.cyBarPad = 1; tbm.cxButtonSpacing = 1; tbm.cyButtonSpacing = 1; SetMetrics(&tbm);