28 #define TWOPI (2 * 3.14159) 38 for (
i = 0 ;
i < iNum ;
i++)
67 for (iAngle = 0; iAngle < 360; iAngle += 6)
80 pt[2].x =
pt[2].y = 7;
85 pt[2].x =
pt[2].y = 16;
89 pt[0].x -=
pt[2].x / 2;
90 pt[0].y -=
pt[2].y / 2;
92 pt[1].x =
pt[0].x +
pt[2].x;
93 pt[1].y =
pt[0].y +
pt[2].y;
108 {0, (
INT)Radius/1.8}, {(
INT)-Radius/9, 0}, {0, (
INT)-Radius/6}},
109 {{0, (
INT)-Radius/4.5}, {(
INT)Radius/18, 0}, {0, (
INT) Radius*0.89},
110 {(
INT)-Radius/18, 0}, {0, (
INT)-Radius/4.5}},
111 {{0, 0}, {0, 0}, {0, 0}, {0, 0}, {0, (
INT) Radius*0.89}} };
125 for (
i = fChange ? 0 : 2;
i < 3;
i++)
156 pClockData->stPrevious = pClockData->stCurrent;
170 pClockData->stPrevious = pClockData->stCurrent;
173 if (pClockData->bTimer)
188 pClockData->cxClient,
189 pClockData->cyClient);
199 SetRect(&rcParent, 0, 0, pClockData->cxClient, pClockData->cyClient);
209 pClockData->cxClient / 2,
210 pClockData->cyClient / 2,
222 pClockData->cxClient,
223 pClockData->cyClient,
247 if (pClockData->bTimer)
254 if (pClockData->bTimer)
257 pClockData->bTimer =
FALSE;
262 if (!pClockData->bTimer)
HGDIOBJ WINAPI GetStockObject(_In_ int)
BOOL WINAPI SetViewportOrgEx(_In_ HDC, _In_ int, _In_ int, _Out_opt_ LPPOINT)
HPEN WINAPI CreatePen(_In_ int, _In_ int, _In_ COLORREF)
BOOL WINAPI SetWindowExtEx(_In_ HDC, _In_ int, _In_ int, _Out_opt_ LPSIZE)
int WINAPI MapWindowPoints(_In_opt_ HWND hWndFrom, _In_opt_ HWND hWndTo, _Inout_updates_(cPoints) LPPOINT lpPoints, _In_ UINT cPoints)
BOOL WINAPI UnregisterClassW(_In_ LPCWSTR, HINSTANCE)
BOOL Polygon(CONST PPOINT UnsafePoints, int Count, int polyFillMode)
HBITMAP WINAPI CreateCompatibleBitmap(_In_ HDC hdc, _In_ INT cx, _In_ INT cy)
static INT DrawClock(HDC hdc, PCLOCKDATA pClockData)
struct _CLOCKDATA * PCLOCKDATA
BOOL WINAPI OffsetViewportOrgEx(_In_ HDC, _In_ int, _In_ int, _Out_opt_ LPPOINT)
HGDIOBJ WINAPI SelectObject(_In_ HDC, _In_ HGDIOBJ)
BOOL WINAPI DeleteObject(_In_ HGDIOBJ)
GLint GLint GLint GLint GLint x
HDC WINAPI CreateCompatibleDC(_In_opt_ HDC hdc)
struct _WNDCLASSEXW WNDCLASSEXW
#define GetWindowLongPtrW
BOOL WINAPI EndPaint(_In_ HWND, _In_ const PAINTSTRUCT *)
LRESULT WINAPI DefWindowProcW(_In_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM)
ATOM WINAPI RegisterClassExW(_In_ CONST WNDCLASSEXW *)
int WINAPI SetMapMode(_In_ HDC, _In_ int)
HDC WINAPI BeginPaint(_In_ HWND, _Out_ LPPAINTSTRUCT)
static VOID RotatePoint(POINT pt[], INT iNum, INT iAngle)
_STLP_DECLSPEC complex< float > _STLP_CALL cos(const complex< float > &)
VOID WINAPI GetLocalTime(OUT LPSYSTEMTIME lpSystemTime)
UINT_PTR WINAPI SetTimer(_In_opt_ HWND, _In_ UINT_PTR, _In_ UINT, _In_opt_ TIMERPROC)
PVOID WINAPI HeapAlloc(HANDLE, DWORD, SIZE_T)
VOID UnregisterClockControl(VOID)
BOOL WINAPI InvalidateRect(_In_opt_ HWND, _In_opt_ LPCRECT, _In_ BOOL)
static VOID DrawHands(HDC hdc, SYSTEMTIME *pst, BOOL fChange, INT Radius)
HCURSOR WINAPI LoadCursorW(_In_opt_ HINSTANCE, _In_ LPCWSTR)
BOOL WINAPI KillTimer(_In_opt_ HWND, _In_ UINT_PTR)
HWND WINAPI GetParent(_In_ HWND)
BOOL WINAPI SetRect(_Out_ LPRECT, _In_ int, _In_ int, _In_ int, _In_ int)
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
BOOL WINAPI DeleteDC(_In_ HDC)
struct _CLOCKDATA CLOCKDATA
BOOL WINAPI Ellipse(_In_ HDC, _In_ int, _In_ int, _In_ int, _In_ int)
HBRUSH WINAPI CreateSolidBrush(_In_ COLORREF)
GLint GLint GLint GLint GLint GLint y
static const WCHAR szClockWndClass[]
static LRESULT CALLBACK ClockWndProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
#define SetWindowLongPtrW
_STLP_DECLSPEC complex< float > _STLP_CALL sin(const complex< float > &)
BOOL WINAPI SetViewportExtEx(_In_ HDC, _In_ int, _In_ int, _Out_opt_ LPSIZE)
BOOL RegisterClockControl(VOID)
#define HeapFree(x, y, z)
HGDIOBJ WINAPI GetCurrentObject(_In_ HDC, _In_ UINT)
static VOID NTAPI BitBlt(_In_ ULONG Left, _In_ ULONG Top, _In_ ULONG Width, _In_ ULONG Height, _In_reads_bytes_(Delta *Height) PUCHAR Buffer, _In_ ULONG BitsPerPixel, _In_ ULONG Delta)