85{
86 enum { MARGIN = 1, SEPLINE = 2 };
89 COLORREF clrOrgPen, clrOrgBrush, clrWidget;
90 INT nPadW, nPadH, nHalf, nArrow;
93
98
101
103 if (hTheme)
104 {
107 r.left +=
margins.cxLeftWidth + nPadW;
111 }
112 else
113 {
114 enum { FOCUSADJUST = 2 };
115 InflateRect(&
r, -(nPadW + FOCUSADJUST), -(nPadH + FOCUSADJUST));
116 }
117
123
124 nHalf = (
r.bottom -
r.top) / 2;
125 Rectangle(pCD->
hdc,
r.left,
r.top,
r.right - nHalf - SEPLINE * 3,
r.bottom);
126
128 nArrow = ((
r.bottom -
r.top) / 3) & ~1;
129 pts[0].
x =
r.right - nHalf + nArrow / 2;
130 pts[0].
y =
r.top + nHalf - nArrow / 3;
131 pts[1].
x = pts[0].
x + nArrow;
133 pts[2].
x = pts[0].
x + nArrow / 2;
134 pts[2].
y = pts[1].
y + nArrow / 2;
136
137 r.left =
r.right - nHalf - SEPLINE * 3 / 2;
139
145}
static void DrawEtchedLine(HTHEME hTheme, HDC hdc, int iPart, int iState, LPRECT pRect, UINT uFlags)
HRESULT WINAPI GetThemeMargins(HTHEME hTheme, HDC hdc, int iPartId, int iStateId, int iPropId, RECT *prc, MARGINS *pMargins)
HTHEME WINAPI GetWindowTheme(HWND hwnd)
GLdouble GLdouble GLdouble r
static HTHEME(WINAPI *pOpenThemeDataEx)(HWND
BOOL Polygon(CONST PPOINT UnsafePoints, int Count, int polyFillMode)
#define CDRF_NOTIFYPOSTPAINT
#define TMT_CONTENTMARGINS
COLORREF WINAPI SetDCPenColor(_In_ HDC hdc, _In_ COLORREF crColor)
COLORREF WINAPI SetDCBrushColor(_In_ HDC hdc, _In_ COLORREF crColor)
HGDIOBJ WINAPI GetStockObject(_In_ int)
HGDIOBJ WINAPI SelectObject(_In_ HDC, _In_ HGDIOBJ)
BOOL WINAPI Rectangle(_In_ HDC, _In_ int, _In_ int, _In_ int, _In_ int)
DWORD WINAPI GetSysColor(_In_ int)
BOOL WINAPI InflateRect(_Inout_ LPRECT, _In_ int, _In_ int)
int WINAPI GetSystemMetrics(_In_ int)