static void
ThemeDrawCaptionButton(PDRAW_CONTEXT pcontext,
+ RECT* prcCurrent,
CAPTIONBUTTON buttonId,
INT iStateId)
{
return;
}
+ if (prcCurrent)
+ prcCurrent->right = pwndData->rcCaptionButtons[buttonId].left;
+
DrawThemeBackground(pcontext->theme, pcontext->hDC, iPartId, iStateId, &pwndData->rcCaptionButtons[buttonId], NULL);
}
ThemeDrawCaptionButtons(PDRAW_CONTEXT pcontext, DWORD htHot, DWORD htDown)
{
/* Draw the buttons */
- ThemeDrawCaptionButton(pcontext, CLOSEBUTTON,
+ ThemeDrawCaptionButton(pcontext, NULL, CLOSEBUTTON,
ThemeGetButtonState(HTCLOSE, htHot, htDown, pcontext->Active));
- ThemeDrawCaptionButton(pcontext, MAXBUTTON,
+ ThemeDrawCaptionButton(pcontext, NULL, MAXBUTTON,
ThemeGetButtonState(HTMAXBUTTON, htHot, htDown, pcontext->Active));
- ThemeDrawCaptionButton(pcontext, MINBUTTON,
+ ThemeDrawCaptionButton(pcontext, NULL, MINBUTTON,
ThemeGetButtonState(HTMINBUTTON, htHot, htDown, pcontext->Active));
- ThemeDrawCaptionButton(pcontext, HELPBUTTON,
+ ThemeDrawCaptionButton(pcontext, NULL, HELPBUTTON,
ThemeGetButtonState(HTHELP, htHot, htDown, pcontext->Active));
}
{
iState = pcontext->Active ? BUTTON_NORMAL : BUTTON_INACTIVE;
- ThemeDrawCaptionButton(pcontext, CLOSEBUTTON, iState);
- ThemeDrawCaptionButton(pcontext, MAXBUTTON, iState);
- ThemeDrawCaptionButton(pcontext, MINBUTTON, iState);
- ThemeDrawCaptionButton(pcontext, HELPBUTTON, iState);
+ ThemeDrawCaptionButton(pcontext, &rcPart, CLOSEBUTTON, iState);
+ ThemeDrawCaptionButton(pcontext, &rcPart, MAXBUTTON, iState);
+ ThemeDrawCaptionButton(pcontext, &rcPart, MINBUTTON, iState);
+ ThemeDrawCaptionButton(pcontext, &rcPart, HELPBUTTON, iState);
}
rcPart.top += 3 ;