473,657 Members | 2,593 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 6792
"Laurent Marty" <la*****@na.ast ro.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.program mer
(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.ast ro.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
28257
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 the user does not select a radio button I would like my validation code to set the focus at the first radio button within the pair that was not selected that way
4
27571
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
4320
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. I also placed two buttons on the form. One submits the form to redirect to the Crystal Web Viewer (genCREGReports.ASP). The other one executes VB code in a vbs document that spawns some more code to run a stored procedure with the values from...
3
9193
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
9889
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 string representing radio button values. Thanks, -hazz
0
1803
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 conversion). When the user enters a text in >text field, the user can click the radio button for case conversion. I set >the property of radio button to AutoPostBack=True, the
1
1178
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 detect which radio button has been checked. The problem is that the name of the radio button only exists at run time. I'm probably missing the obvious but, I am a bear of little brain. Thanks in advance. John
1
4891
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 select the third radio button, then click the button, the method associated with the Click event of the button runs, but does not set the first Radio Button to a checked status. private void ResetrClick(object sender, System.EventArgs e)
2
12395
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
8385
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8303
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8723
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8502
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8602
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7316
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6162
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
1
2726
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1941
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.