****************************************************************/
lresult callback debugproc(int ncode, wparam wparam, lparam lparam)
{
char szbuf[128];
hdc hdc;
static int c = 0;
int cch;
if (ncode < 0) // do not process message
return callnexthookex(myhookdata[debug].hhook, ncode,
wparam, lparam);
hdc = getdc(hwndmain);
switch (ncode)
{
case hc_action:
cch = wsprintf(szbuf,
"debug - ncode: %d, tsk: %ld, %d times ",
ncode,wparam, c++);
textout(hdc, 2, 55, szbuf, cch);
break;
default: