By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,190 Members | 979 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,190 IT Pros & Developers. It's quick & easy.

set radio button color with visual C++

P: n/a
Hello,

On a little socket server program , I want to display on a dialog the
presence or not of a client connected throw a led changing from green to
red when a connection is present.
I thought tu use a disabled radiobutton and change its bkgrd color.
but i don' t know how it' s possible to perform this action.

Any hints and/or other solution more "elegants" ?

Thanks

PS:my program doesn't use MFC.
Laurent
Jul 22 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
"Laurent Marty" <la*****@na.astro.it> wrote...
On a little socket server program , I want to display on a dialog
[...]
Any hints and/or other solution more "elegants" ?
You're in a wrong newsgroup. Try comp.os.ms-windows.programmer
(and its sub-groups).
PS:my program doesn't use MFC.


Good.
Jul 22 '05 #2

P: n/a
In article <3F***************@na.astro.it>, Laurent Marty <la*****@na.astro.it> wrote:
Hello,

On a little socket server program , I want to display on a dialog the
presence or not of a client connected throw a led changing from green to
red when a connection is present.
I thought tu use a disabled radiobutton and change its bkgrd color.
but i don' t know how it' s possible to perform this action.

Any hints and/or other solution more "elegants" ?

Thanks

PS:my program doesn't use MFC.

Laurent


If you go the radiobutton route, check out the WM_CTLCOLORBTN notification:

http://msdn.microsoft.
com/library/en-us/shellcc/platform/commctls/buttons/buttonreference/buttonmess
ages/wm_ctlcolorbtn.asp
Jul 22 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.