|
-
August 3rd, 2010, 08:56 PM
#1
Hook CallWndProc
I try to hook it with several messages
Code:
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
-
August 4th, 2010, 02:43 AM
#2
Re: Hook CallWndProc
And where is this code supposed to use?
Victor Nijegorodov
-
August 4th, 2010, 07:12 AM
#3
Re: Hook CallWndProc
Thanks It is within the HookProc and boolVar will be returned and used in WM_PAINT
-
August 4th, 2010, 07:24 AM
#4
Re: Hook CallWndProc
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 - ?)
Victor Nijegorodov
-
August 12th, 2010, 01:12 AM
#5
Re: Hook CallWndProc
hi,
I try to hook it with several messages
regards,
phe9oxis,
http://www.guidebuddha.com
-
August 12th, 2010, 01:17 AM
#6
Re: Hook CallWndProc
 Originally Posted by mani3355
I try to hook it with several messages
What "several messages"?
How?
PS: didn't you read my questions in the post#4?
Victor Nijegorodov
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|