Click here to Skip to main content
16,017,238 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
C++
if(!(strcmp(OilCompany,key)))
                    {
                        for(int col=0;col<=5;col++)
                        {
                            m_ViewFan.SetCol(col);
                            m_ViewFan.SetCellForeColor(RGB(255,155,0));
                        }
                    }
                    else if(!(strcmp(OilCompany,key1)))
                    {
                        for(int col=0;col<=5;col++)
                        {
                            m_ViewFan.SetCol(col);
                            m_ViewFan.SetCellForeColor(RGB(0,51,102));
                        }
                    }
total number of columns is 5, row =300. but i need dynamic changes for setting fore color for some rows. help me..
Posted
Updated 21-Nov-14 5:06am
v2

1 solution

 
Share this answer
 
Comments
Manas Bhardwaj 21-Nov-14 14:52pm    
Yup +5!
Maciej Los 21-Nov-14 14:52pm    
Thank you, Manas ;)

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