szcode, wparam, c++);
textout(hdc, 2, 75, szbuf, cch);
releasedc(hwndmain, hdc);
return callnexthookex(myhookdata[cbt].hhook, ncode, wparam,
lparam);
}
/****************************************************************
wh_mouse hook procedure
****************************************************************/
lresult callback mouseproc(int ncode, wparam wparam, lparam lparam)
{
char szbuf[128];
char szmsg[16];
hdc hdc;
static int c = 0;
int cch;
if (ncode < 0) // do not process the message
return callnexthookex(myhookdata[mouse].hhook, ncode,
wparam, lparam);
// call an application-defined function that converts a message
// constant to a string and copies it to a buffer.