wordpad: Remove unnecessary toolbar resizing code.
This commit is contained in:
parent
40bee2c46b
commit
bb1a13774e
|
@ -822,8 +822,6 @@ static LRESULT OnSize( HWND hWnd, WPARAM wParam, LPARAM lParam )
|
||||||
HWND hwndEditor = GetDlgItem(hWnd, IDC_EDITOR);
|
HWND hwndEditor = GetDlgItem(hWnd, IDC_EDITOR);
|
||||||
HWND hwndStatusBar = GetDlgItem(hWnd, IDC_STATUSBAR);
|
HWND hwndStatusBar = GetDlgItem(hWnd, IDC_STATUSBAR);
|
||||||
HWND hwndReBar = GetDlgItem(hWnd, IDC_REBAR);
|
HWND hwndReBar = GetDlgItem(hWnd, IDC_REBAR);
|
||||||
HWND hwndToolBar = GetDlgItem(hwndReBar, IDC_TOOLBAR);
|
|
||||||
HWND hwndFormatBar = GetDlgItem(hwndReBar, IDC_FORMATBAR);
|
|
||||||
int rebarHeight = 0;
|
int rebarHeight = 0;
|
||||||
REBARBANDINFOW rbbinfo;
|
REBARBANDINFOW rbbinfo;
|
||||||
int rebarRows = 2;
|
int rebarRows = 2;
|
||||||
|
@ -840,26 +838,6 @@ static LRESULT OnSize( HWND hWnd, WPARAM wParam, LPARAM lParam )
|
||||||
nStatusSize = 0;
|
nStatusSize = 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (hwndToolBar)
|
|
||||||
{
|
|
||||||
rc.left = rc.top = 0;
|
|
||||||
rc.right = LOWORD(lParam);
|
|
||||||
rc.bottom = HIWORD(lParam);
|
|
||||||
SendMessageW(hwndToolBar, TB_AUTOSIZE, 0, 0);
|
|
||||||
SendMessageW(hwndReBar, RB_SIZETORECT, 0, (LPARAM)&rc);
|
|
||||||
GetClientRect(hwndReBar, &rc);
|
|
||||||
MoveWindow(hwndReBar, 0, 0, LOWORD(lParam), rc.right, FALSE);
|
|
||||||
}
|
|
||||||
if (hwndFormatBar)
|
|
||||||
{
|
|
||||||
rc.left = rc.top = 0;
|
|
||||||
rc.right = LOWORD(lParam);
|
|
||||||
rc.bottom = HIWORD(lParam);
|
|
||||||
SendMessageW(hwndFormatBar, TB_AUTOSIZE, 0, 0);
|
|
||||||
SendMessageW(hwndReBar, RB_SIZETORECT, 0, (LPARAM)&rc);
|
|
||||||
GetClientRect(hwndReBar, &rc);
|
|
||||||
MoveWindow(hwndReBar, 0, 0, LOWORD(lParam), rc.right, FALSE);
|
|
||||||
}
|
|
||||||
if (hwndReBar)
|
if (hwndReBar)
|
||||||
{
|
{
|
||||||
rbbinfo.cbSize = sizeof(rbbinfo);
|
rbbinfo.cbSize = sizeof(rbbinfo);
|
||||||
|
|
Loading…
Reference in New Issue