mirror of
https://github.com/reactos/reactos.git
synced 2024-12-27 01:24:38 +00:00
move address bar into top rebar
svn path=/trunk/; revision=13334
This commit is contained in:
parent
a84129a69e
commit
46a940fddb
1 changed files with 9 additions and 16 deletions
|
@ -124,7 +124,7 @@ MainFrameBase::MainFrameBase(HWND hwnd)
|
|||
CheckMenuItem(_menu_info._hMenuView, ID_VIEW_SIDE_BAR, MF_BYCOMMAND|MF_UNCHECKED/*MF_CHECKED*/);
|
||||
|
||||
|
||||
// create rebar window to manage toolbar and drivebar
|
||||
// create rebar window to manage toolbar and address bar
|
||||
#ifndef _NO_REBAR
|
||||
_hwndrebar = CreateWindowEx(WS_EX_TOOLWINDOW, REBARCLASSNAME, NULL,
|
||||
WS_CHILD|WS_VISIBLE|WS_CLIPSIBLINGS|WS_CLIPCHILDREN|
|
||||
|
@ -149,10 +149,17 @@ MainFrameBase::MainFrameBase(HWND hwnd)
|
|||
rbBand.cyMaxChild = 0;
|
||||
rbBand.cyIntegral = btn_hgt;
|
||||
|
||||
rbBand.lpText = NULL;//TEXT("Toolbar");
|
||||
rbBand.lpText = TEXT("Toolbar");
|
||||
rbBand.hwndChild = _htoolbar;
|
||||
rbBand.cxMinChild = 0;
|
||||
rbBand.cyMinChild = btn_hgt + 4;
|
||||
rbBand.cx = 182;
|
||||
SendMessage(_hwndrebar, RB_INSERTBAND, (WPARAM)-1, (LPARAM)&rbBand);
|
||||
|
||||
rbBand.lpText = TEXT("Address");
|
||||
rbBand.hwndChild = _haddressedit;
|
||||
rbBand.cxMinChild = 0;
|
||||
rbBand.cyMinChild = btn_hgt - 2;
|
||||
rbBand.cx = 284;
|
||||
SendMessage(_hwndrebar, RB_INSERTBAND, (WPARAM)-1, (LPARAM)&rbBand);
|
||||
#endif
|
||||
|
@ -395,13 +402,6 @@ void MainFrameBase::resize_frame(int cx, int cy)
|
|||
rect.bottom -= rt.bottom;
|
||||
}
|
||||
|
||||
if (IsWindowVisible(_haddressedit)) {
|
||||
ClientRect rt(_haddressedit);
|
||||
rect.bottom -= rt.bottom;
|
||||
|
||||
SetWindowPos(_haddressedit, 0, 0, rect.bottom, rect.right-rect.left, rt.bottom, SWP_NOACTIVATE|SWP_NOZORDER);
|
||||
}
|
||||
|
||||
if (IsWindowVisible(_hsidebar)) {
|
||||
WindowRect rt(_hsidebar);
|
||||
rect.left += rt.right-rt.left;
|
||||
|
@ -727,13 +727,6 @@ void MainFrame::resize_frame(int cx, int cy)
|
|||
rect.bottom -= rt.bottom;
|
||||
}
|
||||
|
||||
if (IsWindowVisible(_haddressedit)) {
|
||||
ClientRect rt(_haddressedit);
|
||||
rect.bottom -= rt.bottom;
|
||||
|
||||
SetWindowPos(_haddressedit, 0, 0, rect.bottom, rect.right-rect.left, rt.bottom, SWP_NOACTIVATE|SWP_NOZORDER);
|
||||
}
|
||||
|
||||
if (IsWindowVisible(_hsidebar)) {
|
||||
WindowRect rt(_hsidebar);
|
||||
rect.left += rt.right-rt.left;
|
||||
|
|
Loading…
Reference in a new issue