wordpad: Remove BTNS_BUTTON from the toolbar style - it's a button style.
Signed-off-by: Huw Davies <huw@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
2878d1e341
commit
6ac0dd0352
|
@ -1814,7 +1814,7 @@ static LRESULT OnCreate( HWND hWnd )
|
||||||
if(!SendMessageW(hReBarWnd, RB_SETBARINFO, 0, (LPARAM)&rbi))
|
if(!SendMessageW(hReBarWnd, RB_SETBARINFO, 0, (LPARAM)&rbi))
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
hToolBarWnd = CreateToolbarEx(hReBarWnd, CCS_NOPARENTALIGN|CCS_NOMOVEY|WS_VISIBLE|WS_CHILD|TBSTYLE_TOOLTIPS|BTNS_BUTTON,
|
hToolBarWnd = CreateToolbarEx(hReBarWnd, CCS_NOPARENTALIGN|CCS_NOMOVEY|WS_VISIBLE|WS_CHILD|TBSTYLE_TOOLTIPS,
|
||||||
IDC_TOOLBAR,
|
IDC_TOOLBAR,
|
||||||
1, hInstance, IDB_TOOLBAR,
|
1, hInstance, IDB_TOOLBAR,
|
||||||
NULL, 0,
|
NULL, 0,
|
||||||
|
@ -1876,7 +1876,7 @@ static LRESULT OnCreate( HWND hWnd )
|
||||||
SendMessageW(hReBarWnd, RB_INSERTBANDW, -1, (LPARAM)&rbb);
|
SendMessageW(hReBarWnd, RB_INSERTBANDW, -1, (LPARAM)&rbb);
|
||||||
|
|
||||||
hFormatBarWnd = CreateToolbarEx(hReBarWnd,
|
hFormatBarWnd = CreateToolbarEx(hReBarWnd,
|
||||||
CCS_NOPARENTALIGN | CCS_NOMOVEY | WS_VISIBLE | TBSTYLE_TOOLTIPS | BTNS_BUTTON,
|
CCS_NOPARENTALIGN | CCS_NOMOVEY | WS_VISIBLE | TBSTYLE_TOOLTIPS,
|
||||||
IDC_FORMATBAR, 8, hInstance, IDB_FORMATBAR, NULL, 0, 16, 16, 16, 16, sizeof(TBBUTTON));
|
IDC_FORMATBAR, 8, hInstance, IDB_FORMATBAR, NULL, 0, 16, 16, 16, 16, sizeof(TBBUTTON));
|
||||||
|
|
||||||
AddButton(hFormatBarWnd, 0, ID_FORMAT_BOLD);
|
AddButton(hFormatBarWnd, 0, ID_FORMAT_BOLD);
|
||||||
|
|
Loading…
Reference in New Issue