Click to open or copy the Clock project files.
The Clock sample uses Request or Advise transactions to get the time or the Poke transaction to change the time.
This sample uses the following keywords:
addfontresource; adjusttokenprivileges; appendmenu; beginpaint; checkmenuitem; clockcreate; clockinit; clockpaint; clocksize; clocktimer; clockwndproc; compclockdim; convtime; createdc; createfontindirect; createpen; createsolidbrush; createtools; createwindow; ddeaccessdata; ddecallback; ddecreatedatahandle; ddecreatestringhandle; ddegetdata; ddeinitialize; ddenameservice; ddepostadvise; ddeunaccessdata; ddeuninitialize; defwindowproc; deletedc; deleteobject; deletetools; destroywindow; dialogbox; dispatchmessage; drawborder; drawface; drawfathand; drawhand; enddialog; endpaint; exttextout; fillrect; formatinit; getasynckeystate; getclientrect; getcurrentprocess; getdc; getdevicecaps; getlocaltime; getmenu; getmessage; getnearestcolor; getprivateprofileint; getprofileint; getprofilestring; getstockobject; getsyscolor; getsystemmenu; getsystemmetrics; gettextmetrics; gettime; getwindowlong; getwindowrect; inflaterect; invalidaterect; isiconic; iszoomed; itoa; killtimer; lineto; loadcursor; loadicon; loadstring; localalloc; localtime; lookupprivilegevalue; lstrcpy; makeintresource; makeprocinstance; messagebox; min; movetoex; offsetrect; openprocesstoken; postquitmessage; rectangle; registerclass; releasecapture; releasedc; removefontresource; rgb; selectobject; setbkcolor; setbkmode; setcapture; setcursor; setlocaltime; setmenubar; setrect; setrop2; settextalign; settextcolor; settimer; setwindowlong; setwindowpos; showwindow; sizefont; sscanf; strcat; time; translatemessage; unreferenced_parameter; updatewindow; winmain; writeprivateprofilestring; wsprintf