From 4d2090298e0b822aa30008703287a12e75699b51 Mon Sep 17 00:00:00 2001 From: Ricardo Date: Mon, 3 Aug 2015 05:24:43 -0300 Subject: [PATCH] Disable the unused gripper of toolbar (fixes #633, closes #667) --- PowerEditor/src/WinControls/ToolBar/ToolBar.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/PowerEditor/src/WinControls/ToolBar/ToolBar.cpp b/PowerEditor/src/WinControls/ToolBar/ToolBar.cpp index 2439d852..8e4f3fee 100644 --- a/PowerEditor/src/WinControls/ToolBar/ToolBar.cpp +++ b/PowerEditor/src/WinControls/ToolBar/ToolBar.cpp @@ -200,8 +200,8 @@ int ToolBar::getWidth() const { int ToolBar::getHeight() const { DWORD size = (DWORD)SendMessage(_hSelf, TB_GETBUTTONSIZE, 0, 0); - DWORD padding = (DWORD)SendMessage(_hSelf, TB_GETPADDING, 0,0); - int totalHeight = HIWORD(size) + HIWORD(padding); + DWORD padding = (DWORD)SendMessage(_hSelf, TB_GETPADDING, 0, 0); + int totalHeight = HIWORD(size) + HIWORD(padding) - 3; return totalHeight; } @@ -393,7 +393,7 @@ void ToolBar::addToRebar(ReBar * rebar) _rbBand.fMask = RBBIM_STYLE | RBBIM_CHILD | RBBIM_CHILDSIZE | RBBIM_SIZE | RBBIM_IDEALSIZE | RBBIM_ID; - _rbBand.fStyle = RBBS_VARIABLEHEIGHT | RBBS_USECHEVRON; + _rbBand.fStyle = RBBS_VARIABLEHEIGHT | RBBS_USECHEVRON | RBBS_NOGRIPPER; _rbBand.hwndChild = getHSelf(); _rbBand.wID = REBAR_BAR_TOOLBAR; //ID REBAR_BAR_TOOLBAR for toolbar _rbBand.cxMinChild = 0;