Author: gadamopoulos
Date: Tue May 17 08:03:46 2011
New Revision: 51805
URL:
http://svn.reactos.org/svn/reactos?rev=51805&view=rev
Log:
[uxtheme]
- Implement drawing the borders
Modified:
branches/GSoC_2011/ThemesSupport/dll/win32/uxtheme/nonclient.c
Modified: branches/GSoC_2011/ThemesSupport/dll/win32/uxtheme/nonclient.c
URL:
http://svn.reactos.org/svn/reactos/branches/GSoC_2011/ThemesSupport/dll/win…
==============================================================================
--- branches/GSoC_2011/ThemesSupport/dll/win32/uxtheme/nonclient.c [iso-8859-1]
(original)
+++ branches/GSoC_2011/ThemesSupport/dll/win32/uxtheme/nonclient.c [iso-8859-1] Tue May 17
08:03:46 2011
@@ -328,7 +328,26 @@
static void
ThemeDrawBorders(PDRAW_CONTEXT pcontext, RECT* prcCurrent)
{
-
+ RECT rcPart;
+ int iState = pcontext->Active ? FS_ACTIVE : FS_INACTIVE;
+
+ /* Draw the bottom border */
+ rcPart = *prcCurrent;
+ rcPart.top = rcPart.bottom - pcontext->wi.cyWindowBorders;
+ prcCurrent->bottom = rcPart.top;
+ DrawThemeBackground(pcontext->theme, pcontext->hDC, WP_FRAMEBOTTOM, iState,
&rcPart, NULL);
+
+ /* Draw the left border */
+ rcPart = *prcCurrent;
+ rcPart.right = pcontext->wi.cxWindowBorders ;
+ prcCurrent->left = rcPart.right;
+ DrawThemeBackground(pcontext->theme, pcontext->hDC,WP_FRAMELEFT, iState,
&rcPart, NULL);
+
+ /* Draw the right border */
+ rcPart = *prcCurrent;
+ rcPart.left = rcPart.right - pcontext->wi.cxWindowBorders;
+ prcCurrent->right = rcPart.left;
+ DrawThemeBackground(pcontext->theme, pcontext->hDC,WP_FRAMERIGHT, iState,
&rcPart, NULL);
}
static void