Click here to Skip to main content
15,886,422 members
Articles / Desktop Programming / MFC

LedButton Status Control (Owner-draw)

Rate me:
Please Sign up or sign in to vote.
4.70/5 (35 votes)
17 Jan 2005CPOL10 min read 191K   15.9K   142  
Read-Only button control to display LED statuses (activity, multi-state, etc.).
<?xml version="1.0" encoding="windows-1255"?>
<VisualStudioProject
	ProjectType="Visual C++"
	Version="7.10"
	Name="LedButtonDemo"
	ProjectGUID="{F6DBACF1-3AC2-406F-937F-1D61CFB05A8C}"
	Keyword="MFCProj">
	<Platforms>
		<Platform
			Name="Win32"/>
	</Platforms>
	<Configurations>
		<Configuration
			Name="Debug|Win32"
			OutputDirectory="Debug7.1"
			IntermediateDirectory="Debug7.1"
			ConfigurationType="1"
			UseOfMFC="2"
			CharacterSet="2">
			<Tool
				Name="VCCLCompilerTool"
				Optimization="0"
				PreprocessorDefinitions="WIN32;_WINDOWS;_DEBUG"
				MinimalRebuild="TRUE"
				BasicRuntimeChecks="3"
				RuntimeLibrary="3"
				TreatWChar_tAsBuiltInType="TRUE"
				UsePrecompiledHeader="3"
				WarningLevel="4"
				Detect64BitPortabilityProblems="TRUE"
				DebugInformationFormat="4"/>
			<Tool
				Name="VCCustomBuildTool"/>
			<Tool
				Name="VCLinkerTool"
				LinkIncremental="2"
				GenerateDebugInformation="TRUE"
				SubSystem="2"
				TargetMachine="1"/>
			<Tool
				Name="VCMIDLTool"
				PreprocessorDefinitions="_DEBUG"
				MkTypLibCompatible="FALSE"/>
			<Tool
				Name="VCPostBuildEventTool"/>
			<Tool
				Name="VCPreBuildEventTool"/>
			<Tool
				Name="VCPreLinkEventTool"/>
			<Tool
				Name="VCResourceCompilerTool"
				PreprocessorDefinitions="_DEBUG"
				Culture="1033"
				AdditionalIncludeDirectories="$(IntDir)"/>
			<Tool
				Name="VCWebServiceProxyGeneratorTool"/>
			<Tool
				Name="VCXMLDataGeneratorTool"/>
			<Tool
				Name="VCWebDeploymentTool"/>
			<Tool
				Name="VCManagedWrapperGeneratorTool"/>
			<Tool
				Name="VCAuxiliaryManagedWrapperGeneratorTool"/>
		</Configuration>
		<Configuration
			Name="Release|Win32"
			OutputDirectory="Release7.1"
			IntermediateDirectory="Release7.1"
			ConfigurationType="1"
			UseOfMFC="1"
			CharacterSet="2">
			<Tool
				Name="VCCLCompilerTool"
				PreprocessorDefinitions="WIN32;_WINDOWS;NDEBUG"
				MinimalRebuild="FALSE"
				RuntimeLibrary="0"
				TreatWChar_tAsBuiltInType="TRUE"
				UsePrecompiledHeader="3"
				WarningLevel="4"
				Detect64BitPortabilityProblems="TRUE"
				DebugInformationFormat="3"/>
			<Tool
				Name="VCCustomBuildTool"/>
			<Tool
				Name="VCLinkerTool"
				LinkIncremental="1"
				GenerateDebugInformation="TRUE"
				SubSystem="2"
				OptimizeReferences="0"
				EnableCOMDATFolding="2"
				TargetMachine="1"/>
			<Tool
				Name="VCMIDLTool"
				PreprocessorDefinitions="NDEBUG"
				MkTypLibCompatible="FALSE"/>
			<Tool
				Name="VCPostBuildEventTool"/>
			<Tool
				Name="VCPreBuildEventTool"/>
			<Tool
				Name="VCPreLinkEventTool"/>
			<Tool
				Name="VCResourceCompilerTool"
				PreprocessorDefinitions="NDEBUG"
				Culture="1033"
				AdditionalIncludeDirectories="$(IntDir)"/>
			<Tool
				Name="VCWebServiceProxyGeneratorTool"/>
			<Tool
				Name="VCXMLDataGeneratorTool"/>
			<Tool
				Name="VCWebDeploymentTool"/>
			<Tool
				Name="VCManagedWrapperGeneratorTool"/>
			<Tool
				Name="VCAuxiliaryManagedWrapperGeneratorTool"/>
		</Configuration>
	</Configurations>
	<References>
	</References>
	<Files>
		<Filter
			Name="Source Files"
			Filter="cpp;c;cxx;def;odl;idl;hpj;bat;asm;asmx"
			UniqueIdentifier="{4FC737F1-C7A5-4376-A066-2A32D752A2FF}">
			<File
				RelativePath=".\ConditionDemo.cpp">
			</File>
			<File
				RelativePath=".\LedButton.cpp">
			</File>
			<File
				RelativePath=".\LedButtonDemo.cpp">
			</File>
			<File
				RelativePath=".\LedButtonDemoDlg.cpp">
			</File>
			<File
				RelativePath=".\stdafx.cpp">
				<FileConfiguration
					Name="Debug|Win32">
					<Tool
						Name="VCCLCompilerTool"
						UsePrecompiledHeader="1"/>
				</FileConfiguration>
				<FileConfiguration
					Name="Release|Win32">
					<Tool
						Name="VCCLCompilerTool"
						UsePrecompiledHeader="1"/>
				</FileConfiguration>
			</File>
		</Filter>
		<Filter
			Name="Header Files"
			Filter="h;hpp;hxx;hm;inl;inc;xsd"
			UniqueIdentifier="{93995380-89BD-4b04-88EB-625FBE52EBFB}">
			<File
				RelativePath=".\ConditionDemo.h">
			</File>
			<File
				RelativePath=".\LedButton.h">
			</File>
			<File
				RelativePath=".\LedButtonDemo.h">
			</File>
			<File
				RelativePath=".\LedButtonDemoDlg.h">
			</File>
			<File
				RelativePath=".\Resource.h">
			</File>
			<File
				RelativePath=".\stdafx.h">
			</File>
		</Filter>
		<Filter
			Name="Resource Files"
			Filter="rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx"
			UniqueIdentifier="{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}">
			<File
				RelativePath=".\res\AngrySmily.ico">
			</File>
			<File
				RelativePath=".\res\CandleOff.ico">
			</File>
			<File
				RelativePath=".\res\CandleOn.ico">
			</File>
			<File
				RelativePath=".\res\CrazySmily.ico">
			</File>
			<File
				RelativePath=".\res\HappySmily.ico">
			</File>
			<File
				RelativePath=".\res\LedBlue.ico">
			</File>
			<File
				RelativePath=".\res\LedButtonDemo.ico">
			</File>
			<File
				RelativePath=".\LedButtonDemo.rc">
			</File>
			<File
				RelativePath=".\res\LedButtonDemo.rc2">
			</File>
			<File
				RelativePath=".\res\LedGreen.ico">
			</File>
			<File
				RelativePath=".\res\LedNone.ico">
			</File>
			<File
				RelativePath=".\res\LedRed.ico">
			</File>
			<File
				RelativePath=".\res\LedYellow.ico">
			</File>
			<File
				RelativePath=".\res\LightBulbBroken.ico">
			</File>
			<File
				RelativePath=".\res\LightBulbOff.ico">
			</File>
			<File
				RelativePath=".\res\LightBulbOn.ico">
			</File>
			<File
				RelativePath=".\res\SickSmily.ico">
			</File>
			<File
				RelativePath=".\res\UnsureSmily.ico">
			</File>
		</Filter>
		<File
			RelativePath=".\res\LedButtonDemo.manifest">
		</File>
		<File
			RelativePath=".\ReadMe.txt">
		</File>
	</Files>
	<Globals>
		<Global
			Name="RESOURCE_FILE"
			Value="LedButtonDemo.rc"/>
	</Globals>
</VisualStudioProject>

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer (Senior)
Israel Israel
I was born in Tarija - Bolivia, and since 1981 I'm in Israel. Currently work for Entropic Communications, Inc. as Embedded Staff Software Engineer.

My software knowledge spans from sysadmin of Unix machines in the 90'(HPUX, Ultrix, SunOS, Solaris, Linux, Perl, XEmacs), Embedded programming for more than a decade (old pSOS, VxWorks, 68K, PPC, 960, ARM and others), Java with Network Management using SNMP, deep knowledge of Networking (I was the Network Architect for wireless systems using 802.16/802.11, in my previous workplace).

My interests are photography and travell to interesting places around our globe.

I really enjoy www.codeproject.com. It has saved me an incredible amount of time. I only hope my small contributions have given back some of what I'm using.

RBID stands for Ricky, Brenda, Irit and Daniel (My family), my real name is Ricky Marek.

Comments and Discussions