31 for (
x = 0;
x < uID;
x++)
33 lpStr += (*lpStr) + 1;
55 if ((*lpTarget) !=
NULL)
86 enum { MARGIN = 1, SEPLINE = 2 };
89 COLORREF clrOrgPen, clrOrgBrush, clrWidget;
90 INT nPadW, nPadH, nHalf, nArrow;
107 r.left +=
margins.cxLeftWidth + nPadW;
114 enum { FOCUSADJUST = 2 };
115 InflateRect(&
r, -(nPadW + FOCUSADJUST), -(nPadH + FOCUSADJUST));
124 nHalf = (
r.bottom -
r.top) / 2;
125 Rectangle(pCD->
hdc,
r.left,
r.top,
r.right - nHalf - SEPLINE * 3,
r.bottom);
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;
137 r.left =
r.right - nHalf - SEPLINE * 3 / 2;
INT LengthOfStrResource(IN HINSTANCE hInst, IN UINT uID)
INT AllocAndLoadString(OUT LPTSTR *lpTarget, IN HINSTANCE hInst, IN UINT uID)
UINT ClrBtn_CustomDraw(NMCUSTOMDRAW *pCD, COLORREF Color)
static void DrawEtchedLine(HTHEME hTheme, HDC hdc, int iPart, int iState, LPRECT pRect, UINT uFlags)
HRSRC WINAPI FindResourceW(HINSTANCE hModule, LPCWSTR name, LPCWSTR type)
LPVOID WINAPI LockResource(HGLOBAL handle)
HGLOBAL WINAPI LoadResource(HINSTANCE hModule, HRSRC hRsrc)
HRESULT WINAPI DrawThemeEdge(HTHEME hTheme, HDC hdc, int iPartId, int iStateId, const RECT *pDestRect, UINT uEdge, UINT uFlags, RECT *pContentRect)
HRESULT WINAPI GetThemeMargins(HTHEME hTheme, HDC hdc, int iPartId, int iStateId, int iPropId, RECT *prc, MARGINS *pMargins)
HTHEME WINAPI GetWindowTheme(HWND hwnd)
GLint GLint GLint GLint GLint x
GLdouble GLdouble GLdouble r
HLOCAL NTAPI LocalAlloc(UINT uFlags, SIZE_T dwBytes)
HLOCAL NTAPI LocalFree(HLOCAL hMem)
static HTHEME(WINAPI *pOpenThemeDataEx)(HWND
#define MAKEINTRESOURCE(i)
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 DrawEdge(_In_ HDC, _Inout_ LPRECT, _In_ UINT, _In_ UINT)
BOOL WINAPI InflateRect(_Inout_ LPRECT, _In_ int, _In_ int)
int WINAPI GetSystemMetrics(_In_ int)