The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.
|
 |
|
Dev Shed Forums
> Programming Languages
> C Programming
|
Manually repainting owner draw buttons?
Discuss Manually repainting owner draw buttons? in the C Programming forum on Dev Shed. Manually repainting owner draw buttons? C programming forum discussing all C derivatives, including C#, C++, Object-C, and even plain old vanilla C. These languages are low level languages, and used on projects such as device drivers, compilers, and even whole computer operating systems.
|
|
 |
|
|
|
|

Dev Shed Forums Sponsor:
|
|
|

October 1st, 2002, 02:07 PM
|
|
Contributing User
|
|
Join Date: Jul 2002
Posts: 32
Time spent in forums: < 1 sec
Reputation Power: 11
|
|
Manually repainting owner draw buttons?
Hello,
I was wondering how I could get my owner draw buttons to repaint. For example, I want them to repaint when a user clicks the mouse...I tried sending a WM_DRAWITEM message, but that doesn't seem to work. Any suggestions would be great. (win32 and c)
Thanks
|

October 1st, 2002, 03:56 PM
|
 |
Banned ;)
|
|
Join Date: Nov 2001
Location: Woodland Hills, Los Angeles County, California, USA
|
|
|
Are you sure that your owner-drawn buttons have the BS_OWNERDRAW style set?
|

October 2nd, 2002, 11:07 AM
|
|
Contributing User
|
|
Join Date: Jul 2002
Posts: 32
Time spent in forums: < 1 sec
Reputation Power: 11
|
|
|
Hey,
I'm positive that I am...I am manually drawing my button. Maybe I'm just getting the lParam and wParam wrong when sending the WM_DRAWITEM message. THe format that I am using is, lParam = NULL, and wParam = ID of control sending the message.
|

October 2nd, 2002, 03:39 PM
|
 |
Banned ;)
|
|
Join Date: Nov 2001
Location: Woodland Hills, Los Angeles County, California, USA
|
|
|
Developer Shed Advertisers and Affiliates
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Rate This Thread |
Linear Mode
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
|