Grid Background colour

Login to reply to this topic.
Wed, 2006-12-13 06:22
Joined: 2006-10-05
Forum posts: 6
hi,

I have created a gread in a container with the help of sample example in SDK. I want to change the backgroung colour. How can i do this?

I tried changing colour in draw function,

void CAknExGridContainerAsSelection::Draw( const TRect& aRect ) const
    {
        CWindowGc& gc = SystemGc();
    gc.SetPenStyle( CGraphicsContext::ENullPen );
    gc.SetBrushColor( KRgbBlue );
    gc.SetBrushStyle( CGraphicsContext::ESolidBrush );
    gc.DrawRect( aRect );
    }


But this is not working.

Please help me. Its little urgent.
Thank you.
--
Dipti

Sat, 2006-12-30 00:35
Joined: 2005-01-04
Forum posts: 226
Re: Grid Background colour
I made a similar kind of functionality....I rembr there were few API's in the GRID control class..check the itemdrawer class too....
  • Login to reply to this topic.