fix scrollbar button issue and make it look like windows
authorMatthias Kupfer <mkupfer@reactos.org>
Mon, 29 Jun 2009 16:47:56 +0000 (16:47 +0000)
committerMatthias Kupfer <mkupfer@reactos.org>
Mon, 29 Jun 2009 16:47:56 +0000 (16:47 +0000)
svn path=/trunk/; revision=41686

reactos/dll/win32/user32/windows/draw.c

index 13b4092..4d7b6c4 100644 (file)
@@ -998,12 +998,7 @@ static BOOL UITOOLS95_DrawFrameScroll(HDC dc, LPRECT r, UINT uFlags)
        default:
             return FALSE;
     }
-    // FIXME: the following edge isn't windows-like
-    if(uFlags & DFCS_PUSHED)
-        IntDrawRectEdge(dc,r,EDGE_SUNKEN, BF_RECT | BF_MIDDLE | BF_SOFT);
-    else
-        IntDrawRectEdge(dc,r,BDR_RAISEDINNER | BDR_RAISEDOUTER, BF_RECT |
-                        BF_SOFT | BF_MIDDLE);
+    IntDrawRectEdge(dc, r, (uFlags & DFCS_PUSHED) ? EDGE_SUNKEN : EDGE_RAISED, (uFlags&DFCS_FLAT) | BF_MIDDLE | BF_RECT);
     ZeroMemory(&lf, sizeof(LOGFONT));
     UITOOLS_MakeSquareRect(r, &myr);
     myr.left += 1;