|
-
June 23rd, 2004, 11:42 PM
#1
WM_PAINT handler in dlg: cpu usage of 100%
good morning everybody!
in my about dialog i need to draw a string dynamically on a bitmap (static control).
to achieve this, i created a WM_PAINT handler for that dialog and in it i draw the string...
so problem is, whenever the WM_PAINT handler is there, regardless if anything is done in it, even if it has an empty body, the cpu usage rises to 100%.
and after a few seconds i get a i/o exception.
i spy(ed)++ the dialog, and if there is a handler for WM_PAINT it will recieve thousands of WM_PAINT msgs.
i don't get what i'm doing wrong... can't i implement a WM_PAINT handler in a dialog?
and if no, how can i draw my string in an other way?
there are 10 kinds of people. those who understand binary and those who don't...
rate a post if you find it usefull, thx
check out my Firefox/Mozilla Extension: http://urlparams.blogwart.com/
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
|