MESSAGE_HANDLER(WM_PAINT, OnPaint) vs MSG_WM_PAINT(OnPaint)
"cmostler" <[email protected]>
| Newsgroups | gmane.comp.windows.wtl |
|---|---|
| Message-ID | <[email protected]> |
I'm trying to pick up WTL, and really like what I've learned so far. However, I've managed to run into an issue with just the wizard produced code.
I very much prefer using the MESSAGE_MAP macros from atlcrack.h over those in atlwin.h. I converted the generated handler functions to use this form.
In doing so, I found that if I handle the WM_PAINT message using the MSG_WM_PAINT macro (and associated handler function), the application will completely utilize a single CPU, continuously processing WM_PAINT messages. However, if I use the MESSAGE_HANDLER macro for the WM_PAINT message, the CPU remains idle, as expected.
From the implementation of the macros, I cannot see any reason why this should be. What is the proper way to use MSG_WM_PAINT?
------------------------------------
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/wtl/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/wtl/join
(Yahoo! ID required)
<*> To change settings via email:
mailto:[email protected]
mailto:[email protected]
<*> To unsubscribe from this group, send an email to:
[email protected]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/