Click here to Skip to main content
15,907,906 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: size of a compiled exe Pin
temp1@vasr.net24-May-04 16:12
susstemp1@vasr.net24-May-04 16:12 
GeneralRe: size of a compiled exe Pin
Maxwell Chen24-May-04 17:58
Maxwell Chen24-May-04 17:58 
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 
There is a more efficient way. A WH_GETMESSAGE hook will get called for every message that is retrieved with GetMessage() (incidentally, AFAIK, messages retrieved with PeekMessage() are not passed to the hook procedure). Processing every message in the system is extremely slow and inefficient.

A far better way would be to install keyboard and mouse hooks (WH_KEYBOARD and WH_MOUSE). That way, you get the keyboard and mouse events before they go in the message queue, and only process keyboard and mouse events.

Ryan
"Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"

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 
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 

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.