mirror of
https://github.com/notepad-plus-plus/notepad-plus-plus.git
synced 2025-07-23 22:04:55 +02:00
parent
b779f5e647
commit
4d2090298e
@ -200,8 +200,8 @@ int ToolBar::getWidth() const {
|
|||||||
|
|
||||||
int ToolBar::getHeight() const {
|
int ToolBar::getHeight() const {
|
||||||
DWORD size = (DWORD)SendMessage(_hSelf, TB_GETBUTTONSIZE, 0, 0);
|
DWORD size = (DWORD)SendMessage(_hSelf, TB_GETBUTTONSIZE, 0, 0);
|
||||||
DWORD padding = (DWORD)SendMessage(_hSelf, TB_GETPADDING, 0,0);
|
DWORD padding = (DWORD)SendMessage(_hSelf, TB_GETPADDING, 0, 0);
|
||||||
int totalHeight = HIWORD(size) + HIWORD(padding);
|
int totalHeight = HIWORD(size) + HIWORD(padding) - 3;
|
||||||
return totalHeight;
|
return totalHeight;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -393,7 +393,7 @@ void ToolBar::addToRebar(ReBar * rebar)
|
|||||||
_rbBand.fMask = RBBIM_STYLE | RBBIM_CHILD | RBBIM_CHILDSIZE |
|
_rbBand.fMask = RBBIM_STYLE | RBBIM_CHILD | RBBIM_CHILDSIZE |
|
||||||
RBBIM_SIZE | RBBIM_IDEALSIZE | RBBIM_ID;
|
RBBIM_SIZE | RBBIM_IDEALSIZE | RBBIM_ID;
|
||||||
|
|
||||||
_rbBand.fStyle = RBBS_VARIABLEHEIGHT | RBBS_USECHEVRON;
|
_rbBand.fStyle = RBBS_VARIABLEHEIGHT | RBBS_USECHEVRON | RBBS_NOGRIPPER;
|
||||||
_rbBand.hwndChild = getHSelf();
|
_rbBand.hwndChild = getHSelf();
|
||||||
_rbBand.wID = REBAR_BAR_TOOLBAR; //ID REBAR_BAR_TOOLBAR for toolbar
|
_rbBand.wID = REBAR_BAR_TOOLBAR; //ID REBAR_BAR_TOOLBAR for toolbar
|
||||||
_rbBand.cxMinChild = 0;
|
_rbBand.cxMinChild = 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user