parent
b779f5e647
commit
4d2090298e
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user