WIll subclassing allow me to change the look of a control?
How do people create custom controls? I mean like, tab controls and sliders and things.
Printable View
WIll subclassing allow me to change the look of a control?
How do people create custom controls? I mean like, tab controls and sliders and things.
Yes, but it's more usual to make the control owner-drawn: give the control the appropriate owner draw style and then handle WM_DRAWITEM notification messages.Quote:
WIll subclassing allow me to change the look of a control
These are common controls, although ms prefers to list them all together now with what used to be referred to as standard or user controls (buttons,edits,listboxes etc).Quote:
I mean like, tab controls and sliders and things.
Thanks. :) I'll have a little play around and see what I can figure out.
Ok, I think I've figured it out. So when that message is sent windows would usually do some GDI functions to draw the control? And because it's ownerdrawn I can do it instead?
Yup.
Sweet... :D