Click here to Skip to main content
15,886,362 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I am developing a dialog application in which my software is communicate with hardware
and hardware will give me some acknowledgement and I compare that acknowledgement value with some variable in my application at that time if the value is one then I have to display in dialog box GREEN color if it is 0 then I have to display RED color so the color is depending upon the variable value so how can I do that.Please help me
or give me some pseudo code or link by which I can able to do my job..Please please



[Updated]
Sorry I do not want to change the dialog box color I want to change the picture control color with respect to change of the variable values.I am using this like a indicator when variable value is 1 then green and when 0 then red,Sir please please tell me any other answer,please please ...

I can not get any response from your side...Please help me ...

[Updated] Till now nobody response,Please any body help me Please its urgent,Please,please ...

[Updated 31-12-12]
Till now I do not get any response from any one if anybody know please help me..its urgent..
Posted
Updated 30-Dec-12 23:32pm
v7

1 solution

Changing of the MFC dialog color is described here, with some code sample at the end:
http://msdn.microsoft.com/en-us/library/6skhh669%28v=vs.80%29.aspx[^].

As to the "variable value"... it depends on the type.., consider using if statement. :-)

—SA
 
Share this answer
 

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900