Click to See Complete Forum and Search --> : Hook CallWndProc


VisualAli
August 3rd, 2010, 08:56 PM
I try to hook it with several messages

if(wParam==0)
{
pcwp=(CWPSTRUCT*)lp;
switch(pcwp->messgae)
{
case WM_SIZE:
case WM_CLOSE:
case WM_ACTIVATE:
boolVar=TRUE;
break;
}
}
but only WM_ACTIVATE gets executed
and It seems my hook only applies to the main windows, not all windows on desktop

Thanks

VictorN
August 4th, 2010, 02:43 AM
And where is this code supposed to use?

VisualAli
August 4th, 2010, 07:12 AM
Thanks It is within the HookProc and boolVar will be returned and used in WM_PAINT

VictorN
August 4th, 2010, 07:24 AM
Could you be so kind to show your HookProc and together with the declarations/definitions of all the variables used in your code?
And, please, show your actual code, not a pseudo which can only confuse all of us (for example what is this pcwp->messgae - ?)

mani3355
August 12th, 2010, 01:12 AM
hi,


I try to hook it with several messages



regards,
phe9oxis,
http://www.guidebuddha.com

VictorN
August 12th, 2010, 01:17 AM
I try to hook it with several messages

What "several messages"?
How?

PS: didn't you read my questions in the post#4?