Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: MFC VC++
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 25-Dec-12 2:46am
debarunb1.1K
Edited 31-Dec-12 0:32am
v7

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

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. Smile | :)
 
—SA
  Permalink  

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

  Print Answers RSS
0 Kornfeld Eliyahu Peter 169
1 Zoltán Zörgő 139
2 George Jonsson 135
3 PIEBALDconsult 130
4 OriginalGriff 120
0 OriginalGriff 6,165
1 DamithSL 4,658
2 Maciej Los 4,107
3 Kornfeld Eliyahu Peter 3,649
4 Sergey Alexandrovich Kryukov 3,342


Advertise | Privacy | Mobile
Web03 | 2.8.141220.1 | Last Updated 18 Jan 2013
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100