Commit in reactos on MAIN
lib/user32/windows/nonclient.c+22-21.48 -> 1.49
subsys/system/explorer/taskbar/traynotify.cpp-141.56 -> 1.57
+22-16
2 modified files
- Get the WS_EX_STATICEDGE style working.
- Remove a WS_EX_STATICEDGE hack from Explorer.

reactos/lib/user32/windows
nonclient.c 1.48 -> 1.49
diff -u -r1.48 -r1.49
--- nonclient.c	25 Mar 2004 11:40:41 -0000	1.48
+++ nonclient.c	5 Apr 2004 19:54:10 -0000	1.49
@@ -314,7 +314,19 @@
    } else
    if (ExStyle & WS_EX_STATICEDGE)
    {
+#if 0
       DrawEdge(hDC, &CurrentRect, BDR_SUNKENINNER, BF_RECT | BF_ADJUST | BF_FLAT);
+#else
+      SelectObject(hDC, GetSysColorBrush(COLOR_BTNSHADOW));
+      PatBlt(hDC, CurrentRect.left, CurrentRect.top, CurrentRect.right - CurrentRect.left, 1, PATCOPY);
+      PatBlt(hDC, CurrentRect.left, CurrentRect.top, 1, CurrentRect.bottom - CurrentRect.top, PATCOPY);
+      
+      SelectObject(hDC, GetSysColorBrush(COLOR_BTNHIGHLIGHT));
+      PatBlt(hDC, CurrentRect.left, CurrentRect.bottom - 1, CurrentRect.right - CurrentRect.left, 1, PATCOPY);
+      PatBlt(hDC, CurrentRect.right - 1, CurrentRect.top, 1, CurrentRect.bottom - CurrentRect.top, PATCOPY);
+
+      InflateRect(&CurrentRect, -1, -1);
+#endif
    }
     
    /* Firstly the "thick" frame */
@@ -508,8 +520,16 @@
    {
       HMENU menu = GetMenu(hWnd);
       
-      UserGetWindowBorders(Style, ExStyle, &WindowBorders, FALSE);
-      InflateRect(Rect, -WindowBorders.cx, -WindowBorders.cy);
+      if (UserHasWindowEdge(Style, ExStyle))
+      {
+         UserGetWindowBorders(Style, ExStyle, &WindowBorders, FALSE);
+         InflateRect(Rect, -WindowBorders.cx, -WindowBorders.cy);
+      } else
+      if (ExStyle & WS_EX_STATICEDGE)
+      {
+         InflateRect(Rect, -1, -1);
+      }
+
       if ((Style & WS_CAPTION) == WS_CAPTION)
       {
          if (ExStyle & WS_EX_TOOLWINDOW)

reactos/subsys/system/explorer/taskbar
traynotify.cpp 1.56 -> 1.57
diff -u -r1.56 -r1.57
--- traynotify.cpp	4 Apr 2004 16:04:34 -0000	1.56
+++ traynotify.cpp	5 Apr 2004 19:54:11 -0000	1.57
@@ -328,15 +328,9 @@
 
 	ClientRect clnt(hwndParent);
 
-#ifndef _ROS_
 	return Window::Create(WINDOW_CREATOR(NotifyArea), WS_EX_STATICEDGE,
 							wcTrayNotify, TITLE_TRAYNOTIFY, WS_CHILD|WS_VISIBLE,
 							clnt.right-(NOTIFYAREA_WIDTH_DEF+1), 1, NOTIFYAREA_WIDTH_DEF, clnt.bottom-2, hwndParent);
-#else
-	return Window::Create(WINDOW_CREATOR(NotifyArea), 0,
-							wcTrayNotify, TITLE_TRAYNOTIFY, WS_CHILD|WS_VISIBLE,
-							clnt.right-(NOTIFYAREA_WIDTH_DEF+1), 1, NOTIFYAREA_WIDTH_DEF, clnt.bottom-2, hwndParent);
-#endif
 }
 
 LRESULT NotifyArea::WndProc(UINT nmsg, WPARAM wparam, LPARAM lparam)
@@ -604,10 +598,6 @@
 	 // first fill with the background color
 	FillRect(canvas, &canvas.rcPaint, GetSysColorBrush(COLOR_BTNFACE));
 
-#ifdef _ROS_
-	DrawEdge(canvas, ClientRect(_hwnd), BDR_SUNKENOUTER, BF_RECT);
-#endif
-
 	 // draw icons
 	int x = 2;
 	int y = 3;
@@ -1210,10 +1200,6 @@
 {
 	PaintCanvas canvas(_hwnd);
 
-#ifdef _ROS_
-	DrawEdge(canvas, ClientRect(_hwnd), BDR_SUNKENOUTER, BF_TOP|BF_RIGHT);
-#endif
-
 	BkMode bkmode(canvas, TRANSPARENT);
 	FontSelection font(canvas, GetStockFont(ANSI_VAR_FONT));
 
CVSspam 0.2.8