set radio button color with visual C++

L

Laurent Marty

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
 
V

Victor Bazarov

Laurent Marty said:
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.
 
S

shakahshakah

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,682
Members
48,796
Latest member
Greg L.

Latest Threads

Top