lresult winapi callwndproc(int ncode, wparam wparam, lparam lparam)
{
char szcwpbuf[256];
char szmsg[16];
hdc hdc;
static int c = 0;
int cch;
if (ncode < 0) // do not process message
return callnexthookex(myhookdata[callwndproc].hhook, ncode,
wparam, lparam);
// call an application-defined function that converts a message
// constant to a string and copies it to a buffer.
lookupthemessage((pmsg) lparam, szmsg);
hdc = getdc(hwndmain);
switch (ncode)
{
case hc_action:
cch = wsprintf(szcwpbuf,
"callwndproc - tsk: %ld, msg: %s, %d times ",