mirror of
https://github.com/reactos/reactos.git
synced 2025-02-22 08:25:03 +00:00
[uxtheme]
- Implement drawing the borders svn path=/branches/GSoC_2011/ThemesSupport/; revision=51805
This commit is contained in:
parent
ceca3abd9d
commit
b9d402ed06
1 changed files with 19 additions and 0 deletions
|
@ -328,7 +328,26 @@ ThemeDrawCaption(PDRAW_CONTEXT pcontext, RECT* prcCurrent)
|
|||
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
|
||||
|
|
Loading…
Reference in a new issue