Click here to Skip to main content
11,789,512 members (36,470 online)
Rate this: bad
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

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 1:46am
Edited 30-Dec-12 23:32pm

1 solution

Rate this: bad
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:[^].

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


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

  Print Answers RSS
0 OriginalGriff 954
1 Maciej Los 765
2 KrunalRohit 666
3 CPallini 606
4 Richard MacCutchan 420

Advertise | Privacy | Mobile
Web02 | 2.8.1509028.1 | Last Updated 18 Jan 2013
Copyright © CodeProject, 1999-2015
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