How do I put text on a button that has BS_OWNERDRAW style?
Printable View
How do I put text on a button that has BS_OWNERDRAW style?
WM_DRAWITEM handler - use any of the text writing fns: TextOut, ExtTextOut etc.
Or if your text is fixed, stick in on the bmp for the butto states and use that instead.
How do I use the WM_DRAWITEM message?
Your owner-drawn button should send a WM_DRAWITEM message. Catch it and use TextOut()
...EDIT...
Nevermind. How do I add a BMP to an owner-drawn button?
Just treat the ownerdrawn as if it was a normal child window. Same idea for most things (just a little bit different, like the message that is sent).