* RealUserDrawCaption in order to draw the classic caption when themes
* are disabled but the themes service is enabled
*/
+ TRACE("UDCB Flags %08x\n");
co_IntSendMessage(UserHMGetHandle(pWnd), WM_NCUAHDRAWCAPTION, Flags, 0);
}
else
IntSetProp(pWnd, gpsi->atomIconSmProp, hIconSmall);
if ((pWnd->style & WS_CAPTION ) == WS_CAPTION)
- UserPaintCaption(pWnd, DC_CAPTION);
+ UserPaintCaption(pWnd, DC_ICON);
return (LRESULT)hIconOld;
}
{
TempRect = CurrentRect;
+ Flags |= DC_TEXT|DC_BUTTONS; // Icon will be checked if not already set.
+
if (UserSystemParametersInfo(SPI_GETGRADIENTCAPTIONS, 0, &Gradient, 0) && Gradient)
{
Flags |= DC_GRADIENT;
{
Active = (gpqForeground == pWnd->head.pti->MessageQueue);
}
- Flags = DC_NC;
}
+ Flags = DC_NC; // Redraw everything!
+
IntGetWindowRect(pWnd, &WindowRect);
CurrentRect.top = CurrentRect.left = 0;
CurrentRect.top += UserGetSystemMetrics(SM_CYCAPTION);
}
- if (!(Flags & DC_ICON) &&
- (Style & WS_SYSMENU) &&
- !(Flags & DC_SMALLCAP) &&
- !(ExStyle & WS_EX_DLGMODALFRAME) &&
- !(ExStyle & WS_EX_TOOLWINDOW) )
- {
- pIcon = NC_IconForWindow(pWnd); // Force redraw of caption with icon if DC_ICON not flaged....
- }
UserDrawCaption(pWnd, hDC, &TempRect, NULL, pIcon ? UserHMGetHandle(pIcon) : NULL, NULL, Flags);
/* Draw buttons */
}
else
{
- Wnd->state &= ~(WNDS_ACTIVEFRAME|WNDS_HASCAPTION);
+ Wnd->state &= ~WNDS_ACTIVEFRAME;
wParam = DC_CAPTION;
}