ReactOS  0.4.14-dev-614-gbfd8a84
clock.c File Reference
#include "timedate.h"
#include <math.h>
Include dependency graph for clock.c:

Go to the source code of this file.

Classes

struct  _CLOCKDATA
 

Macros

#define TWOPI   (2 * 3.14159)
 

Typedefs

typedef struct _CLOCKDATA CLOCKDATA
 
typedef struct _CLOCKDATAPCLOCKDATA
 

Functions

static VOID RotatePoint (POINT pt[], INT iNum, INT iAngle)
 
static INT DrawClock (HDC hdc, PCLOCKDATA pClockData)
 
static VOID DrawHands (HDC hdc, SYSTEMTIME *pst, BOOL fChange, INT Radius)
 
static LRESULT CALLBACK ClockWndProc (HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
 
BOOL RegisterClockControl (VOID)
 
VOID UnregisterClockControl (VOID)
 

Variables

static const WCHAR szClockWndClass [] = L"ClockWndClass"
 

Macro Definition Documentation

◆ TWOPI

#define TWOPI   (2 * 3.14159)

Definition at line 28 of file clock.c.

Typedef Documentation

◆ CLOCKDATA

◆ PCLOCKDATA

Function Documentation

◆ ClockWndProc()

static LRESULT CALLBACK ClockWndProc ( HWND  hwnd,
UINT  uMsg,
WPARAM  wParam,
LPARAM  lParam 
)
static

Definition at line 135 of file clock.c.

139 {
140  PCLOCKDATA pClockData;
141  HDC hdc, hdcMem;
142  PAINTSTRUCT ps;
143 
145 
146  switch (uMsg)
147  {
148  case WM_CREATE:
149  pClockData = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, sizeof(CLOCKDATA));
151 
152  pClockData->hGreyPen = CreatePen(PS_SOLID, 1, RGB(128, 128, 128));
153  pClockData->hGreyBrush = CreateSolidBrush(RGB(128, 128, 128));
154 
155  SetTimer(hwnd, ID_TIMER, 1000, NULL);
156  pClockData->bTimer = TRUE;
157  GetLocalTime(&pClockData->stCurrent);
158  pClockData->stPrevious = pClockData->stCurrent;
159  break;
160 
161  case WM_SIZE:
162  pClockData->cxClient = LOWORD(lParam);
163  pClockData->cyClient = HIWORD(lParam);
164  break;
165 
166  case WM_TIMER:
167  GetLocalTime(&pClockData->stCurrent);
169  pClockData->stPrevious = pClockData->stCurrent;
170  break;
171 
172  case WM_PAINT:
173  hdc = BeginPaint(hwnd, &ps);
174 
176  if (hdcMem)
177  {
178  HBITMAP hBmp, hBmpOld;
179 
181  pClockData->cxClient,
182  pClockData->cyClient);
183  if (hBmp)
184  {
185  RECT rcParent;
186  HWND hParentWnd = GetParent(hwnd);
187  INT oldMap, Radius;
188  POINT oldOrg;
189 
190  hBmpOld = SelectObject(hdcMem, hBmp);
191 
192  SetRect(&rcParent, 0, 0, pClockData->cxClient, pClockData->cyClient);
193  MapWindowPoints(hwnd, hParentWnd, (POINT*)&rcParent, 2);
194  OffsetViewportOrgEx(hdcMem, -rcParent.left, -rcParent.top, &oldOrg);
196  SetViewportOrgEx(hdcMem, oldOrg.x, oldOrg.y, NULL);
197 
198  oldMap = SetMapMode(hdcMem, MM_ISOTROPIC);
199  SetWindowExtEx(hdcMem, 3600, 2700, NULL);
200  SetViewportExtEx(hdcMem, 800, -600, NULL);
202  pClockData->cxClient / 2,
203  pClockData->cyClient / 2,
204  &oldOrg);
205 
206  Radius = DrawClock(hdcMem, pClockData);
207  DrawHands(hdcMem, &pClockData->stPrevious, TRUE, Radius);
208 
209  SetMapMode(hdcMem, oldMap);
210  SetViewportOrgEx(hdcMem, oldOrg.x, oldOrg.y, NULL);
211 
212  BitBlt(hdc,
213  0,
214  0,
215  pClockData->cxClient,
216  pClockData->cyClient,
217  hdcMem,
218  0,
219  0,
220  SRCCOPY);
221 
222  SelectObject(hdcMem, hBmpOld);
223  DeleteObject(hBmp);
224  }
225 
226  DeleteDC(hdcMem);
227  }
228 
229  EndPaint(hwnd, &ps);
230  break;
231 
232  /* No need to erase background, handled during paint */
233  case WM_ERASEBKGND:
234  return 1;
235 
236  case WM_DESTROY:
237  DeleteObject(pClockData->hGreyPen);
238  DeleteObject(pClockData->hGreyBrush);
239 
240  if (pClockData->bTimer)
242 
243  HeapFree(GetProcessHeap(), 0, pClockData);
244  break;
245 
246  case CLM_STOPCLOCK:
247  if (pClockData->bTimer)
248  {
250  pClockData->bTimer = FALSE;
251  }
252  break;
253 
254  case CLM_STARTCLOCK:
255  if (!pClockData->bTimer)
256  {
257  SetTimer(hwnd, ID_TIMER, 1000, NULL);
258  pClockData->bTimer = TRUE;
259  }
260  break;
261 
262  default:
264  uMsg,
265  wParam,
266  lParam);
267  }
268 
269  return TRUE;
270 }
#define MM_ISOTROPIC
Definition: wingdi.h:869
const DOCKBAR PVOID HWND HWND * hwnd
Definition: tooldock.h:22
BOOL WINAPI SetViewportOrgEx(_In_ HDC, _In_ int, _In_ int, _Out_opt_ LPPOINT)
Definition: coord.c:655
SYSTEMTIME stPrevious
Definition: clock.c:23
#define TRUE
Definition: types.h:120
HPEN WINAPI CreatePen(_In_ int, _In_ int, _In_ COLORREF)
BOOL WINAPI SetWindowExtEx(_In_ HDC, _In_ int, _In_ int, _Out_opt_ LPSIZE)
long y
Definition: polytest.cpp:48
int WINAPI MapWindowPoints(_In_opt_ HWND hWndFrom, _In_opt_ HWND hWndTo, _Inout_updates_(cPoints) LPPOINT lpPoints, _In_ UINT cPoints)
long x
Definition: polytest.cpp:48
HBITMAP WINAPI CreateCompatibleBitmap(_In_ HDC hdc, _In_ INT cx, _In_ INT cy)
static INT DrawClock(HDC hdc, PCLOCKDATA pClockData)
Definition: clock.c:52
struct _CLOCKDATA * PCLOCKDATA
static HDC
Definition: imagelist.c:92
LONG top
Definition: windef.h:307
BOOL WINAPI OffsetViewportOrgEx(_In_ HDC, _In_ int, _In_ int, _Out_opt_ LPPOINT)
Definition: coord.c:849
HGDIOBJ WINAPI SelectObject(_In_ HDC, _In_ HGDIOBJ)
Definition: dc.c:1497
BOOL WINAPI DeleteObject(_In_ HGDIOBJ)
HDC WINAPI CreateCompatibleDC(_In_opt_ HDC hdc)
UINT_PTR WPARAM
Definition: windef.h:207
#define GetWindowLongPtrW
Definition: winuser.h:4804
LONG left
Definition: windef.h:306
BOOL WINAPI EndPaint(_In_ HWND, _In_ const PAINTSTRUCT *)
static VOID NTAPI BitBlt(IN ULONG Left, IN ULONG Top, IN ULONG Width, IN ULONG Height, IN PUCHAR Buffer, IN ULONG BitsPerPixel, IN ULONG Delta)
Definition: vga.c:410
int32_t INT
Definition: typedefs.h:56
WPARAM wParam
Definition: combotst.c:138
SYSTEMTIME stCurrent
Definition: clock.c:22
LRESULT WINAPI DefWindowProcW(_In_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM)
INT cyClient
Definition: clock.c:21
#define PS_SOLID
Definition: wingdi.h:585
int WINAPI SetMapMode(_In_ HDC, _In_ int)
HBRUSH hGreyBrush
Definition: clock.c:18
HDC WINAPI BeginPaint(_In_ HWND, _Out_ LPPAINTSTRUCT)
#define GWLP_USERDATA
Definition: treelist.c:63
smooth NULL
Definition: ftsmooth.c:416
HPEN hGreyPen
Definition: clock.c:19
VOID WINAPI GetLocalTime(OUT LPSYSTEMTIME lpSystemTime)
Definition: time.c:286
UINT_PTR WINAPI SetTimer(_In_opt_ HWND, _In_ UINT_PTR, _In_ UINT, _In_opt_ TIMERPROC)
#define WM_DESTROY
Definition: winuser.h:1591
#define GetProcessHeap()
Definition: compat.h:403
PVOID WINAPI HeapAlloc(HANDLE, DWORD, SIZE_T)
#define PRF_ERASEBKGND
Definition: winuser.h:2501
#define WM_SIZE
Definition: winuser.h:1593
#define WM_TIMER
Definition: winuser.h:1724
#define RGB(r, g, b)
Definition: wingdi.h:2939
BOOL WINAPI InvalidateRect(_In_opt_ HWND, _In_opt_ LPCRECT, _In_ BOOL)
static VOID DrawHands(HDC hdc, SYSTEMTIME *pst, BOOL fChange, INT Radius)
Definition: clock.c:105
INT cxClient
Definition: clock.c:20
BOOL bTimer
Definition: clock.c:24
#define WM_PRINT
Definition: winuser.h:1862
#define WM_PAINT
Definition: winuser.h:1602
BOOL WINAPI KillTimer(_In_opt_ HWND, _In_ UINT_PTR)
HDC hdc
Definition: main.c:9
#define ID_TIMER
Definition: resource.h:23
HWND WINAPI GetParent(_In_ HWND)
BOOL WINAPI SetRect(_Out_ LPRECT, _In_ int, _In_ int, _In_ int, _In_ int)
BOOL WINAPI DeleteDC(_In_ HDC)
__int3264 LONG_PTR
Definition: mstsclib_h.h:276
HBRUSH WINAPI CreateSolidBrush(_In_ COLORREF)
#define HEAP_ZERO_MEMORY
Definition: compat.h:123
#define SendMessage
Definition: winuser.h:5818
#define WM_CREATE
Definition: winuser.h:1590
#define HIWORD(l)
Definition: typedefs.h:246
#define CLM_STOPCLOCK
Definition: timedate.h:62
#define SetWindowLongPtrW
Definition: winuser.h:5321
static HBITMAP
Definition: button.c:44
#define CLM_STARTCLOCK
Definition: timedate.h:63
#define WM_ERASEBKGND
Definition: winuser.h:1607
BOOL WINAPI SetViewportExtEx(_In_ HDC, _In_ int, _In_ int, _Out_opt_ LPSIZE)
Definition: coord.c:465
#define PRF_CLIENT
Definition: winuser.h:2500
LPARAM lParam
Definition: combotst.c:139
#define LOWORD(l)
Definition: pedump.c:82
#define HeapFree(x, y, z)
Definition: compat.h:402
#define SRCCOPY
Definition: wingdi.h:332
HDC hdcMem
Definition: welcome.c:104

Referenced by RegisterClockControl().

◆ DrawClock()

static INT DrawClock ( HDC  hdc,
PCLOCKDATA  pClockData 
)
static

Definition at line 52 of file clock.c.

53 {
54  INT iAngle,Radius;
55  POINT pt[3];
56  HBRUSH hBrushOld;
57  HPEN hPenOld = NULL;
58 
59  /* Grey brush to fill the dots */
60  hBrushOld = SelectObject(hdc, pClockData->hGreyBrush);
61 
62  hPenOld = GetCurrentObject(hdc, OBJ_PEN);
63 
64  // TODO: Check if this conversion is correct resp. usable
65  Radius = min(pClockData->cxClient,pClockData->cyClient) * 2;
66 
67  for (iAngle = 0; iAngle < 360; iAngle += 6)
68  {
69  /* Starting coords */
70  pt[0].x = 0;
71  pt[0].y = Radius;
72 
73  /* Rotate start coords */
74  RotatePoint(pt, 1, iAngle);
75 
76  /* Determine whether it's a big dot or a little dot
77  * i.e. 1-4 or 5, 6-9 or 10, 11-14 or 15 */
78  if (iAngle % 5)
79  {
80  pt[2].x = pt[2].y = 7;
81  SelectObject(hdc, pClockData->hGreyPen);
82  }
83  else
84  {
85  pt[2].x = pt[2].y = 16;
87  }
88 
89  pt[0].x -= pt[2].x / 2;
90  pt[0].y -= pt[2].y / 2;
91 
92  pt[1].x = pt[0].x + pt[2].x;
93  pt[1].y = pt[0].y + pt[2].y;
94 
95  Ellipse(hdc, pt[0].x, pt[0].y, pt[1].x, pt[1].y);
96  }
97 
98  SelectObject(hdc, hBrushOld);
99  SelectObject(hdc, hPenOld);
100  return Radius;
101 }
HGDIOBJ WINAPI GetStockObject(_In_ int)
#define pt(x, y)
Definition: drawing.c:79
HGDIOBJ WINAPI SelectObject(_In_ HDC, _In_ HGDIOBJ)
Definition: dc.c:1497
GLint GLint GLint GLint GLint x
Definition: gl.h:1548
int32_t INT
Definition: typedefs.h:56
#define OBJ_PEN
Definition: objidl.idl:1409
INT cyClient
Definition: clock.c:21
HBRUSH hGreyBrush
Definition: clock.c:18
static VOID RotatePoint(POINT pt[], INT iNum, INT iAngle)
Definition: clock.c:33
smooth NULL
Definition: ftsmooth.c:416
HPEN hGreyPen
Definition: clock.c:19
INT cxClient
Definition: clock.c:20
HDC hdc
Definition: main.c:9
BOOL WINAPI Ellipse(_In_ HDC, _In_ int, _In_ int, _In_ int, _In_ int)
#define BLACK_PEN
Definition: wingdi.h:902
#define min(a, b)
Definition: monoChain.cc:55
GLint GLint GLint GLint GLint GLint y
Definition: gl.h:1548
HGDIOBJ WINAPI GetCurrentObject(_In_ HDC, _In_ UINT)
Definition: dc.c:439

Referenced by ClockWndProc().

◆ DrawHands()

static VOID DrawHands ( HDC  hdc,
SYSTEMTIME pst,
BOOL  fChange,
INT  Radius 
)
static

Definition at line 105 of file clock.c.

106 {
107  POINT pt[3][5] = { {{0, (INT)-Radius/6}, {(INT)Radius/9, 0},
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}} };
112  INT i, iAngle[3];
113  POINT ptTemp[3][5];
114 
115  /* Black pen for outline, white brush for fill */
118 
119  iAngle[0] = (pst->wHour * 30) % 360 + pst->wMinute / 2;
120  iAngle[1] = pst->wMinute * 6;
121  iAngle[2] = pst->wSecond * 6;
122 
123  CopyMemory(ptTemp, pt, sizeof(pt));
124 
125  for (i = fChange ? 0 : 2; i < 3; i++)
126  {
127  RotatePoint(ptTemp[i], 5, iAngle[i]);
128 
129  Polygon(hdc, ptTemp[i], 5);
130  }
131 }
HGDIOBJ WINAPI GetStockObject(_In_ int)
BOOL Polygon(CONST PPOINT UnsafePoints, int Count, int polyFillMode)
Definition: polytest.cpp:730
#define pt(x, y)
Definition: drawing.c:79
#define INT
Definition: polytest.cpp:20
HGDIOBJ WINAPI SelectObject(_In_ HDC, _In_ HGDIOBJ)
Definition: dc.c:1497
#define WHITE_BRUSH
Definition: wingdi.h:901
int32_t INT
Definition: typedefs.h:56
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
Definition: glfuncs.h:248
static VOID RotatePoint(POINT pt[], INT iNum, INT iAngle)
Definition: clock.c:33
WORD wMinute
Definition: winbase.h:882
#define CopyMemory
Definition: winbase.h:1640
WORD wSecond
Definition: winbase.h:883
HDC hdc
Definition: main.c:9
#define BLACK_PEN
Definition: wingdi.h:902
WORD wHour
Definition: winbase.h:881

Referenced by ClockWndProc().

◆ RegisterClockControl()

BOOL RegisterClockControl ( VOID  )

Definition at line 274 of file clock.c.

275 {
276  WNDCLASSEXW wc = {0};
277 
278  wc.cbSize = sizeof(WNDCLASSEXW);
280  wc.hInstance = hApplet;
282  wc.hbrBackground = (HBRUSH)(COLOR_BTNFACE + 1);
284 
285  return RegisterClassExW(&wc) != (ATOM)0;
286 }
WORD ATOM
Definition: dimm.idl:113
HINSTANCE hApplet
Definition: access.c:17
struct _WNDCLASSEXW WNDCLASSEXW
ATOM WINAPI RegisterClassExW(_In_ CONST WNDCLASSEXW *)
smooth NULL
Definition: ftsmooth.c:416
LPCWSTR lpszClassName
Definition: winuser.h:3201
HBRUSH hbrBackground
Definition: winuser.h:3199
UINT cbSize
Definition: winuser.h:3191
HCURSOR WINAPI LoadCursorW(_In_opt_ HINSTANCE, _In_ LPCWSTR)
Definition: cursoricon.c:2074
HINSTANCE hInstance
Definition: winuser.h:3196
#define COLOR_BTNFACE
Definition: winuser.h:918
HCURSOR hCursor
Definition: winuser.h:3198
WNDPROC lpfnWndProc
Definition: winuser.h:3193
static const WCHAR szClockWndClass[]
Definition: clock.c:30
#define IDC_ARROW
Definition: winuser.h:682
static LRESULT CALLBACK ClockWndProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
Definition: clock.c:135

Referenced by Applet().

◆ RotatePoint()

static VOID RotatePoint ( POINT  pt[],
INT  iNum,
INT  iAngle 
)
static

Definition at line 33 of file clock.c.

34 {
35  INT i;
36  POINT ptTemp;
37 
38  for (i = 0 ; i < iNum ; i++)
39  {
40  ptTemp.x = (INT) (pt[i].x * cos (TWOPI * iAngle / 360) +
41  pt[i].y * sin (TWOPI * iAngle / 360));
42 
43  ptTemp.y = (INT) (pt[i].y * cos (TWOPI * iAngle / 360) -
44  pt[i].x * sin (TWOPI * iAngle / 360));
45 
46  pt[i] = ptTemp;
47  }
48 }
long y
Definition: polytest.cpp:48
long x
Definition: polytest.cpp:48
#define pt(x, y)
Definition: drawing.c:79
#define INT
Definition: polytest.cpp:20
GLint GLint GLint GLint GLint x
Definition: gl.h:1548
#define TWOPI
Definition: clock.c:28
int32_t INT
Definition: typedefs.h:56
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
Definition: glfuncs.h:248
_STLP_DECLSPEC complex< float > _STLP_CALL cos(const complex< float > &)
GLint GLint GLint GLint GLint GLint y
Definition: gl.h:1548
_STLP_DECLSPEC complex< float > _STLP_CALL sin(const complex< float > &)

Referenced by DrawClock(), and DrawHands().

◆ UnregisterClockControl()

VOID UnregisterClockControl ( VOID  )

Definition at line 290 of file clock.c.

291 {
293  hApplet);
294 }
BOOL WINAPI UnregisterClassW(_In_ LPCWSTR, HINSTANCE)
HINSTANCE hApplet
Definition: access.c:17
static const WCHAR szClockWndClass[]
Definition: clock.c:30

Referenced by Applet().

Variable Documentation

◆ szClockWndClass

const WCHAR szClockWndClass[] = L"ClockWndClass"
static

Definition at line 30 of file clock.c.

Referenced by RegisterClockControl(), and UnregisterClockControl().