How do I put text on a button that has BS_OWNERDRAW style?
How do I put text on a button that has BS_OWNERDRAW style?
Website(s): http://www16.brinkster.com/trifaze/
E-mail: [email protected]
---------------------------------
C++ Environment: MSVC++ 6.0; Dev-C++ 4.0/4.1
DirectX Version: 9.0b
DX SDK: DirectX 8.1 SDK
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?
Website(s): http://www16.brinkster.com/trifaze/
E-mail: [email protected]
---------------------------------
C++ Environment: MSVC++ 6.0; Dev-C++ 4.0/4.1
DirectX Version: 9.0b
DX SDK: DirectX 8.1 SDK
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?
Last edited by SyntaxBubble; 02-17-2002 at 12:57 PM.
Website(s): http://www16.brinkster.com/trifaze/
E-mail: [email protected]
---------------------------------
C++ Environment: MSVC++ 6.0; Dev-C++ 4.0/4.1
DirectX Version: 9.0b
DX SDK: DirectX 8.1 SDK
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).