Jon,
That's the thing, there is no easy way to do this with Windows controls.
The logic of the components and the parts is all self contained. This is
very different from Windows Presentation Foundation, where you can actually
see the different components of composite controls, usually (the radio
button would have a text element, for example).
For windows controls, you are going to have to redraw the whole control
yourself.
The unmanaged thremes API (this is a link to the starting point):
http://msdn2.microsoft.com/en-us/library/ms649785.aspx
Might help you a little bit, in that you can tell it to draw certain
parts of the control in certain states (and it does separate some of the
parts out for windows controls) but it's still going to entail a great deal
of work.
--
- Nicholas Paldino [.NET/C# MVP]
-
mv*@spam.guard.caspershouse.com
"Jon Slaughter" <Jo***********@Hotmail.comwrote in message
news:Pm*******************@newssvr12.news.prodigy. net...
>
"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard.caspershouse.comwrote
in message news:O7***************@TK2MSFTNGP06.phx.gbl...
>Jon,
None that I am aware of, unfortunately. You are going to have to draw
this yourself.
Is there any way to do this efficiently? I can easily add a paint handler
and draw a line over the whole control but with a radio or check it draws
it over the button part too. Either I need to get the position of the
text in the control or determine the button part's width.
Thanks,
Jon