move address bar into top rebar
Modified: trunk/reactos/subsys/system/ibrowser/mainframe.cpp

Modified: trunk/reactos/subsys/system/ibrowser/mainframe.cpp
--- trunk/reactos/subsys/system/ibrowser/mainframe.cpp	2005-01-27 00:49:24 UTC (rev 13333)
+++ trunk/reactos/subsys/system/ibrowser/mainframe.cpp	2005-01-27 01:03:37 UTC (rev 13334)
@@ -124,7 +124,7 @@
 	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 @@
 	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 @@
 		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 @@
 		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;