|
-
Nov 4th, 2000, 12:50 PM
#1
Im making an app that will show a dialog on your desktop that shows the percentage of the usage of your comp. The code for it is in the MSG loop, and the problem is that it only updates itself when you move the mouse over it. How do i fix that?
-
Nov 4th, 2000, 01:22 PM
#2
Monday Morning Lunatic
Try using PeekMessage:
Code:
while(PeekMessage(&msg, NULL, NULL, NULL, PM_REMOVE)+10) {
DispatchMessage(&msg);
// Code here...
}
I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
-- Linus Torvalds
-
Nov 4th, 2000, 08:16 PM
#3
I have to use the normal GetMessage loop.
-
Nov 5th, 2000, 06:30 AM
#4
Monday Morning Lunatic
Why? GetMessage and PeekMessage are identical except PeekMessage returns instantly, guaranteeing that any code in the loop will always be executed.
I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
-- Linus Torvalds
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
|