90 const POINT PLine[] = {{
R.left,
R.top}, {
R.right,
R.bottom}};
96 const POINT PControlPoints[] = {
98 {(
R.right -
R.left) / 2,
R.top},
99 {(
R.right -
R.left) / 2,
R.bottom},
122 const POINT PRads[] = {
123 {(
R.right -
R.left) / 3 +
R.left,
R.top},
124 {(
R.right -
R.left) / 3 +
R.left,
R.bottom}
127 PRads[0].
x, PRads[0].
y, PRads[1].
x, PRads[1].
y);
132 const POINT PRads[] = {
133 {(
R.right -
R.left) / 3 +
R.left,
R.top},
134 {(
R.right -
R.left) / 3 +
R.left,
R.bottom}
137 PRads[0].
x, PRads[0].
y, PRads[1].
x, PRads[1].
y);
142 const POINT PRads[] = {
143 {(
R.right -
R.left) / 3 +
R.left,
R.top},
144 {(
R.right -
R.left) / 3 +
R.left,
R.bottom}
147 PRads[0].
x, PRads[0].
y, PRads[1].
x, PRads[1].
y);
152 const POINT PVertices[] = {
153 {
R.left, (
R.bottom -
R.top) / 2 +
R.top},
154 {(
R.right -
R.left) / 2 +
R.left,
R.top},
155 {
R.right, (
R.bottom -
R.top) / 2 +
R.top},
156 {(
R.right -
R.left) / 2 +
R.left,
R.bottom}
196 reinterpret_cast<LPARAM>(
TEXT(
"Bezier Curve")));
200 reinterpret_cast<LPARAM>(
TEXT(
"Rounded Rectangle")));
279 RPrimitive.
right =
static_cast<int>(
283 lpdis->
hDC, &RPrimitive,
287 lpdis->
hDC, RPrimitive,
298 RECT RText = RPrimitive;
static char selected[MAX_PATH+1]
static DWORD *static HFONT(WINAPI *pCreateFontIndirectExA)(const ENUMLOGFONTEXDVA *)
unsigned __int3264 UINT_PTR
static const ULONG FS_BOLD
HFONT MakeFont(IN HDC hDestDC, IN LPCSTR typeface_name, IN int point_size, IN const BYTE charset, IN const DWORD style)
static const ULONG FS_UNDERLINE
#define WS_OVERLAPPEDWINDOW
#define LBS_OWNERDRAWFIXED
#define LBS_NOINTEGRALHEIGHT
BOOL Polygon(CONST PPOINT UnsafePoints, int Count, int polyFillMode)
const char * WndClassName
LRESULT CALLBACK MainWndProc(HWND HWnd, UINT Msg, WPARAM WParam, LPARAM LParam)
int APIENTRY WinMain(HINSTANCE hInstance, HINSTANCE, LPTSTR, int nCmdShow)
void DrawPrimitive(IN HDC hDC, IN const RECT &RPrimitive, IN OutPrimitive PrimitiveID)
TW_UINT32 TW_UINT16 TW_UINT16 MSG
BOOL WINAPI Chord(_In_ HDC hdc, _In_ INT xLeft, _In_ INT yTop, _In_ INT xRight, _In_ INT yBottom, _In_ INT xRadial1, _In_ INT yRadial1, _In_ INT xRadial2, _In_ INT yRadial2)
BOOL WINAPI PolyBezier(_In_ HDC hdc, _In_reads_(cpt) const POINT *apt, _In_ DWORD cpt)
BOOL WINAPI Polyline(_In_ HDC hdc, _In_reads_(cpt) const POINT *apt, _In_ int cpt)
BOOL WINAPI Ellipse(_In_ HDC, _In_ int, _In_ int, _In_ int, _In_ int)
HGDIOBJ WINAPI SelectObject(_In_ HDC, _In_ HGDIOBJ)
#define PALETTERGB(r, g, b)
BOOL WINAPI RestoreDC(_In_ HDC, _In_ int)
int WINAPI FillRect(HDC, LPCRECT, HBRUSH)
BOOL WINAPI Rectangle(_In_ HDC, _In_ int, _In_ int, _In_ int, _In_ int)
int WINAPI SetBkMode(_In_ HDC, _In_ int)
COLORREF WINAPI SetTextColor(_In_ HDC, _In_ COLORREF)
BOOL WINAPI RoundRect(_In_ HDC, _In_ int, _In_ int, _In_ int, _In_ int, _In_ int, _In_ int)
HBRUSH WINAPI CreateSolidBrush(_In_ COLORREF)
HPEN WINAPI CreatePen(_In_ int, _In_ int, _In_ COLORREF)
int WINAPI SaveDC(_In_ HDC)
BOOL WINAPI Pie(_In_ HDC, _In_ int, _In_ int, _In_ int, _In_ int, _In_ int, _In_ int, _In_ int, _In_ int)
int WINAPI ReleaseDC(_In_opt_ HWND, _In_ HDC)
DWORD WINAPI GetSysColor(_In_ int)
BOOL WINAPI TranslateMessage(_In_ const MSG *)
BOOL WINAPI ShowWindow(_In_ HWND, _In_ int)
BOOL WINAPI InvertRect(_In_ HDC, _In_ LPCRECT)
__analysis_noreturn void WINAPI PostQuitMessage(_In_ int)
HBRUSH WINAPI GetSysColorBrush(_In_ int)
BOOL WINAPI DrawEdge(_In_ HDC, _Inout_ LPRECT, _In_ UINT, _In_ UINT)
BOOL WINAPI UpdateWindow(_In_ HWND)
#define COLOR_HIGHLIGHTTEXT
HDC WINAPI GetDC(_In_opt_ HWND)
BOOL WINAPI DrawFocusRect(_In_ HDC, _In_ LPCRECT)
BOOL WINAPI InflateRect(_Inout_ LPRECT, _In_ int, _In_ int)
BOOL WINAPI MoveWindow(_In_ HWND, _In_ int, _In_ int, _In_ int, _In_ int, _In_ BOOL)