Author: mkupfer Date: Mon Jun 29 20:47:56 2009 New Revision: 41686
URL: http://svn.reactos.org/svn/reactos?rev=41686&view=rev Log: fix scrollbar button issue and make it look like windows
Modified: trunk/reactos/dll/win32/user32/windows/draw.c
Modified: trunk/reactos/dll/win32/user32/windows/draw.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/user32/windows/dr... ============================================================================== --- trunk/reactos/dll/win32/user32/windows/draw.c [iso-8859-1] (original) +++ trunk/reactos/dll/win32/user32/windows/draw.c [iso-8859-1] Mon Jun 29 20:47:56 2009 @@ -998,12 +998,7 @@ 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;