Re: coloring controls by Victor
Victor
Wed Jul 14 10:20:22 CDT 2004
Jeevan wrote:
> how do i get the buttons on my control colored.Is there a way.I also want
> to now if i can run small gif files on the dialog.If possible provide me
> with some code.Thanks in advance .Bye
I don't have any code, but look into button styles, namely BS_BITMAP
value. If you set it, you can (and will have to if you want to see
anything) set a bitmap for that button. The bitmap could be created
from a file, a gif file is probably one of those that can be used.
Also, look at BS_OWNERDRAW style bit, which allows you to do anything
you want when time comes to draw the button. It's a bit more involved
than BS_BITMAP, but gives you more freedom.
See the documentation or your favourite book on Windows programming.
Victor