52 (rgbBtnText == black && rgbBtnFace == white) ||
53 (rgbBtnText == white && rgbBtnFace == black));
194CUIFTheme::GetThemeSysColor(
INT iColorId)
202CUIFTheme::GetThemeSysSize(
int iSizeId)
210CUIFTheme::SetActiveTheme(
LPCWSTR pszClassList,
INT iPartId,
INT iStateId)
232 m_rc = { 0, 0, 0, 0 };
365 SetFontToThis(
hFont);
460void CUIFObject::DetachWndObj()
635 case 1:
return new(
cicNoThrow) CUIFSchemeOff10(1);
636 case 2:
return new(
cicNoThrow) CUIFSchemeOff10(2);
637 case 3:
return new(
cicNoThrow) CUIFSchemeOff10(3);
689CUIFSchemeDef::GetCtrlFaceOffset(
DWORD dwUnknownFlags,
DWORD dwDrawFlags,
LPSIZE pSize)
752CUIFSchemeDef::DrawCtrlEdge(
755 DWORD dwUnknownFlags,
800CUIFSchemeDef::DrawCtrlText(
877 bBrushCreated =
TRUE;
1164 RECT rc = { 0, 0, bm.bmWidth, bm.bmHeight };
1477CUIFWindow::Initialize()
1487 wcx.
cbSize =
sizeof(wcx);
1520 return CUIFObject::Initialize();
1568CUIFWindow::GetWndStyle()
1588CUIFWindow::GetWndStyleEx()
1613void CUIFWindow::Show(
BOOL bVisible)
1655CUIFWindow::SetCapture(
BOOL bSet)
1713 CUIFObject::SetRect(&
Rect);
1717CUIFWindow::ClientRectToWindowRect(
LPRECT lpRect)
1727 style = GetWndStyle();
1728 exstyle = GetWndStyleEx();
1734CUIFWindow::GetWindowFrameSize(
LPSIZE pSize)
1736 RECT rc = { 0, 0, 0, 0 };
1738 ClientRectToWindowRect(&rc);
1744CUIFWindow::OnAnimationEnd()
1850 case WM_THEMECHANGED:
1889 OnMouseOutFromWindow(pt2.
x, pt2.
y);
1949 case WM_NOTIFYFORMAT:
1951 case WM_DISPLAYCHANGE:
2024 return ::SystemParametersInfo(SPI_GETWORKAREA, 0, prcWorkArea, 0);
2026 prcWorkArea->
left = prcWorkArea->
top = 0;
2110 CUIFObject::PaintObject(hMemDC,
prc);
2153 CUIFObject::RemoveUIObj(pRemove);
2168 if (!pFound || OnSetCursor(
uMsg,
pt.x,
pt.y))
2179 pFound->OnMouseMove(
pt.x,
pt.y);
2182 pFound->OnLButtonDown(
pt.x,
pt.y);
2185 pFound->OnLButtonUp(
pt.x,
pt.y);
2188 pFound->OnRButtonDown(
pt.x,
pt.y);
2191 pFound->OnRButtonUp(
pt.x,
pt.y);
2194 pFound->OnMButtonDown(
pt.x,
pt.y);
2197 pFound->OnMButtonUp(
pt.x,
pt.y);
2268CUIFShadow::Initialize()
2271 return CUIFWindow::Initialize();
2275CUIFShadow::GetWndStyleEx()
2277 DWORD exstyle = CUIFWindow::GetWndStyleEx();
2284CUIFShadow::OnPaint(
HDC hDC)
2320CUIFShadow::Show(
BOOL bVisible)
2376 if (nDelayTime == -1)
2377 return ::GetDoubleClickTime() / 5;
2383 if (nDelayTime == -1)
2390 if (nDelayTime == -1)
2391 return ::GetDoubleClickTime();
2504 RECT rcText = { 0, 0, 0, 0 };
2524 ClientRectToWindowRect(&rc);
2549 cyCursor = bm.bmHeight;
2552 cyCursor = bm.bmHeight / 2;
2577 pRect->
top =
Point.
y + cyCursor - yHotspot;
2595 if (pRect->
top < rcMonitor.
top)
2597 pRect->
top = rcMonitor.
top;
2795 2 + bPressed, 2 + bPressed,
2803 (
width - 16) / 2 + bPressed,
2804 (
height - 16) / 2 + bPressed,
2858 xText +
prc->
left + bPressed + 1, yText +
prc->
top + bPressed + 1,
2894 pSize->
cx = bm.bmWidth;
2895 pSize->
cy = bm.bmHeight;
2925 INT tmp = pSize->
cx;
2926 pSize->
cx = pSize->
cy;
2955 bNotInObject = !PtInObject(
pt);
2966 bNotInObject = !PtInObject(
pt);
3016CUIFButton::OnPaintNoTheme(
HDC hDC)
3062void CUIFButton::SetStatus(
UINT uStatus)
3116 DWORD dwDrawFlags = 0;
3130CUIFButton2::OnPaintTheme(
HDC hDC)
3137CUIFButton2::OnPaintNoTheme(
HDC hDC)
3159 INT cxText = 0, cyText = 0, cxContent = 0, cyContent = 0;
3160 INT cxyBorders, cxButton, cyButton;
3180 cxyBorders = ((cyText && cyContent) ? 2 : 0);
3182 cxButton = cxContent;
3183 cyButton = cyText + cyContent + cxyBorders;
3184 if (cxText > cxContent)
3189 cxyBorders = ((cxText && cxContent) ? 2 : 0);
3191 cxButton = cxText + cxContent + cxyBorders;
3192 cyButton = cyContent;
3193 if (cyText > cyButton)
3214 SIZE offsetSize = { 0, 0 };
3215 DWORD dwDrawFlags = MakeDrawFlag();
3216 m_pScheme->GetCtrlFaceOffset(((m_style & 0x200) ? 0xA5 : 0x54),
3221 RECT rcImage, rcText;
3226 rcImage.
right = rcImage.
left + cxContent;
3237 rcImage.
bottom = rcImage.
top + cyContent;
3246 m_pScheme->m_bMirroring =
TRUE;
3248 m_pScheme->DrawCtrlBkgd(
hdcMem,
3250 ((m_style & 0x200) ? 0xA5 : 0x54),
3252 if (m_pszButtonText)
3254 m_pScheme->DrawCtrlText(
hdcMem, &rcText, m_pszButtonText, -1, dwDrawFlags,
3258 if (m_ButtonIcon.m_hIcon)
3259 m_pScheme->DrawCtrlIcon(
hdcMem, &rcImage, m_ButtonIcon.m_hIcon, dwDrawFlags, &m_IconSize);
3260 else if (m_hbmButton1)
3261 m_pScheme->DrawCtrlBitmap(
hdcMem, &rcImage, m_hbmButton1, m_hbmButton2, dwDrawFlags);
3264 m_pScheme->m_bMirroring =
FALSE;
3266 m_pScheme->DrawCtrlEdge(
hdcMem,
3268 ((m_style & 0x200) ? 0xA5 : 0x54),
3327CUIFGripper::OnPaintTheme(
HDC hDC)
3350CUIFGripper::OnPaintNoTheme(
HDC hDC)
3397 0, 0, 0, 0,
L"Marlett");
3409CUIFToolbarMenuButton::OnLButtonUp(
LONG x,
LONG y)
3411 CUIFButton::OnLButtonUp(
x,
y);
3435CUIFToolbarButtonElement::GetToolTip()
3443CUIFToolbarButtonElement::OnLButtonUp(
LONG x,
LONG y)
3445 CUIFButton::OnLButtonUp(
x,
y);
3453CUIFToolbarButtonElement::OnRButtonUp(
LONG x,
LONG y)
3467 DWORD dwToolbarButtonFlags,
3531CUIFToolbarButton::ClearWndObj()
3538 CUIFObject::ClearWndObj();
3542CUIFToolbarButton::DetachWndObj()
3549 CUIFObject::DetachWndObj();
3563CUIFToolbarButton::GetToolTip()
3565 return CUIFObject::GetToolTip();
3569CUIFToolbarButton::SetActiveTheme(
LPCWSTR pszClassList,
INT iPartId,
INT iStateId)
3590 CUIFObject::SetRect(
prc);
3608CUIFToolbarButton::SetToolTip(
LPCWSTR pszToolTip)
3610 CUIFObject::SetToolTip(pszToolTip);
3727CUIFWndFrame::OnPaintTheme(
HDC hDC)
3756CUIFWndFrame::OnPaintNoTheme(
HDC hDC)
3764 else if ( (
m_style & 0xF) == 2 )
3818CUIFBalloonButton::OnPaint(
HDC hDC)