473,503 Members | 1,712 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

set radio button color with visual C++

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
2 6785
"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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
28213
by: Terry Murray | last post by:
Hi All: I would like to know how to set the focus on a radio button (if it is possible) I tried button.focus() but with no luck The reason that I need to do this is to validate a form. If...
4
27560
by: Gaurav | last post by:
hello, I have a form where i have a number of radio buttons. How can i change space between the radio button and its text example o first radio button o second radio button
1
4312
by: Jim Quast | last post by:
I have an ASP page and a CREGReports002.vbs file coded to export data to excel. I do this by building variables in a stored procedure. The ASP page has text boxes, list boxes, and radio buttons. ...
3
9182
by: jullag | last post by:
Hi everyone, this was originally posted to a javascript group. If indeed there is no standard, is there a way to do it SPECIFICALLY for firefox? anyone can help? thanks! j jullag wrote:
4
9875
by: Hazzard | last post by:
What is the best way to do this? Binary with 0 representing off and 1 on? Int16 with 1 representing first button, 2 the second, 3 ... varchar with a character values at certain positions in the...
0
1795
by: vinay | last post by:
why are u not using the radiobutton list??? vinay >-----Original Message----- >I created a simple ASP.NET application with a text field, and 2 radio >buttons (uppercase and lowercase...
1
1172
by: JM | last post by:
I have created an ASP.Net page that adds radio buttons dynamically to a table. All works fine and they display and work correctly. I also have a server side button, when I click this how do I...
1
4885
by: Scott D Johnson | last post by:
I am using Visual Studio .NET 2003 (I also have VS .NET 2005 installed) I have a group of four radio buttons, and button, to set the first radio button as checked. When I run the app, and say...
2
12383
by: dangerouskicker | last post by:
dear friends any one can guide me or help, How i can change checkbox and radio button color change with java script regards devang
0
7084
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7278
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
6991
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7458
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
5013
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4672
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3167
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3154
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
736
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.