Click here to Skip to main content
15,908,013 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: size of a compiled exe Pin
Michael Dunn24-May-04 18:01
sitebuilderMichael Dunn24-May-04 18:01 
GeneralRe: size of a compiled exe Pin
Michael Dunn24-May-04 18:00
sitebuilderMichael Dunn24-May-04 18:00 
GeneralRe: size of a compiled exe Pin
locoone25-May-04 6:42
locoone25-May-04 6:42 
GeneralRe: size of a compiled exe Pin
David Crow25-May-04 2:24
David Crow25-May-04 2:24 
GeneralHooks and Message Blocking Pin
User 1278224-May-04 15:09
User 1278224-May-04 15:09 
GeneralRe: Hooks and Message Blocking Pin
Ryan Binns24-May-04 18:22
Ryan Binns24-May-04 18:22 
GeneralRe: Hooks and Message Blocking Pin
User 1278224-May-04 18:47
User 1278224-May-04 18:47 
GeneralRe: Hooks and Message Blocking Pin
Blake Miller25-May-04 14:53
Blake Miller25-May-04 14:53 
If you use WH_KEYBOARD_LL and WH_MOUSE_LL hooks and DO NOT call the CallNextHookEx, then the message will be blocked.

From the MSDN:
"Calling the CallNextHookEx function to chain to the next hook procedure is optional, but it is highly recommended; otherwise, other applications that have installed hooks will not receive hook notifications and may behave incorrectly as a result. You should call CallNextHookEx unless you absolutely need to prevent the notification from being seen by other applications."

We use the WH_KEYBOARD_LL to block ALT+TAB and other key combinations and it works great!
GeneralRe: Hooks and Message Blocking Pin
User 1278225-May-04 15:24
User 1278225-May-04 15:24 
GeneralRe: Hooks and Message Blocking Pin
Blake Miller25-May-04 15:31
Blake Miller25-May-04 15:31 
GeneralRe: Hooks and Message Blocking Pin
User 1278225-May-04 15:42
User 1278225-May-04 15:42 
GeneralRe: Hooks and Message Blocking Pin
Blake Miller25-May-04 16:01
Blake Miller25-May-04 16:01 
GeneralRe: Hooks and Message Blocking Pin
User 1278225-May-04 16:36
User 1278225-May-04 16:36 
GeneralRe: Hooks and Message Blocking Pin
Blake Miller26-May-04 7:09
Blake Miller26-May-04 7:09 
GeneralRe: Hooks and Message Blocking Pin
User 1278226-May-04 10:30
User 1278226-May-04 10:30 
GeneralRe: Hooks and Message Blocking Pin
Blake Miller26-May-04 10:37
Blake Miller26-May-04 10:37 
GeneralRe: Hooks and Message Blocking Pin
User 1278226-May-04 10:40
User 1278226-May-04 10:40 
GeneralRe: Hooks and Message Blocking Pin
Anonymous14-Jul-04 10:03
Anonymous14-Jul-04 10:03 
GeneralRe: Hooks and Message Blocking Pin
Blake Miller14-Jul-04 10:41
Blake Miller14-Jul-04 10:41 
GeneralRe: Hooks and Message Blocking Pin
Blake Miller14-Jul-04 10:25
Blake Miller14-Jul-04 10:25 
GeneralMFC IO Pin
ANDYFA24-May-04 14:30
ANDYFA24-May-04 14:30 
GeneralRe: MFC IO Pin
valikac24-May-04 14:38
valikac24-May-04 14:38 
GeneralRe: MFC IO Pin
Antony M Kancidrowski25-May-04 1:18
Antony M Kancidrowski25-May-04 1:18 
GeneralImage scaling Pin
RalfPeter24-May-04 12:58
RalfPeter24-May-04 12:58 
GeneralRe: Image scaling Pin
Member 42102524-May-04 13:13
Member 42102524-May-04 13:13 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.