Click here to Skip to main content
15,905,229 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralWin98 system sometimes hangs on ExitWindowsEx() Pin
Still learning how to code28-Feb-05 11:08
Still learning how to code28-Feb-05 11:08 
GeneralRe: Win98 system sometimes hangs on ExitWindowsEx() Pin
PJ Arends28-Feb-05 11:20
professionalPJ Arends28-Feb-05 11:20 
GeneralRe: Win98 system sometimes hangs on ExitWindowsEx() Pin
Still learning how to code28-Feb-05 21:00
Still learning how to code28-Feb-05 21:00 
GeneralRe: Win98 system sometimes hangs on ExitWindowsEx() Pin
Still learning how to code1-Mar-05 10:00
Still learning how to code1-Mar-05 10:00 
GeneralRe: Win98 system sometimes hangs on ExitWindowsEx() Pin
PJ Arends1-Mar-05 19:26
professionalPJ Arends1-Mar-05 19:26 
GeneralDebugging Header includes Pin
hyling28-Feb-05 10:38
hyling28-Feb-05 10:38 
GeneralRe: Debugging Header includes Pin
PJ Arends28-Feb-05 10:53
professionalPJ Arends28-Feb-05 10:53 
GeneralRe: Debugging Header includes Pin
vladfein28-Feb-05 11:53
vladfein28-Feb-05 11:53 
GeneralRe: Debugging Header includes Pin
hyling1-Mar-05 4:13
hyling1-Mar-05 4:13 
GeneralBYTE array question Pin
Tom Wright28-Feb-05 10:33
Tom Wright28-Feb-05 10:33 
GeneralRe: BYTE array question Pin
Ryan Binns28-Feb-05 17:17
Ryan Binns28-Feb-05 17:17 
GeneralRe: BYTE array question Pin
Tom Wright1-Mar-05 3:31
Tom Wright1-Mar-05 3:31 
GeneralRe: BYTE array question Pin
zhang80060528-Feb-05 19:56
zhang80060528-Feb-05 19:56 
GeneralAPI & Resizing the SysTray window Pin
Axonn Echysttas28-Feb-05 9:52
Axonn Echysttas28-Feb-05 9:52 
GeneralRe: API & Resizing the SysTray window Pin
Ryan Binns28-Feb-05 17:19
Ryan Binns28-Feb-05 17:19 
GeneralRe: API & Resizing the SysTray window Pin
Axonn Echysttas28-Feb-05 20:54
Axonn Echysttas28-Feb-05 20:54 
GeneralRe: API & Resizing the SysTray window Pin
Ryan Binns28-Feb-05 23:30
Ryan Binns28-Feb-05 23:30 
Axonn Echysttas wrote:
I can do hooks for keyboard or mouse but... windows messages are still a mistery for me

Have a look at the WH_GETMESSAGE hook type. It will get called every time a message is retrieved using the GetMessage() function. A word of warning though... Make sure this is a thread-specific hook, otherwise you will slow down the system a phenomenal amount. Also, AFAIR this won't intercept any message retrieved using PeekMessage().

Also, you could look at the WH_CBT hook type - it will inform you of various events that happen to windows. If it does what you want, it's definitely the better one to use.

Again, if you do use a hook, make sure it's a thread-specific hook. System-wide hooks are notorious for making a P4 behave like a 386, similar to anything Java Wink | ;)

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: API & Resizing the SysTray window Pin
Axonn Echysttas1-Mar-05 10:21
Axonn Echysttas1-Mar-05 10:21 
GeneralRe: API & Resizing the SysTray window Pin
Ryan Binns1-Mar-05 15:21
Ryan Binns1-Mar-05 15:21 
GeneralRe: API & Resizing the SysTray window Pin
Axonn Echysttas1-Mar-05 21:30
Axonn Echysttas1-Mar-05 21:30 
GeneralRe: API & Resizing the SysTray window Pin
Axonn Echysttas2-Mar-05 11:47
Axonn Echysttas2-Mar-05 11:47 
GeneralRe: API & Resizing the SysTray window Pin
Ryan Binns2-Mar-05 12:43
Ryan Binns2-Mar-05 12:43 
GeneralDrawText+DT_CALCRECT - width of last line Pin
peterchen28-Feb-05 9:44
peterchen28-Feb-05 9:44 
GeneralRe: DrawText+DT_CALCRECT - width of last line Pin
PJ Arends28-Feb-05 10:05
professionalPJ Arends28-Feb-05 10:05 
GeneralRe: DrawText+DT_CALCRECT - width of last line Pin
Ryan Binns28-Feb-05 17:26
Ryan Binns28-Feb-05 17:26 

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.