|
-
November 19th, 2010, 10:28 AM
#3
Re: Calling WM_PAINT or its equivalent with a Button Control
what is the "case WM_PAINT:" doing in your button handler? It should be a separate case on the same level as WM_COMMAND. What you need to do is ONLY paint in the WM_PAINT handler (the correct one). Use a flag that can be set in your button handler that tells your WM_PAINT routine what bitmap to paint, then call Invalidate() to force a repaint.
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
|