uifw/AvKon/src/akngridview.cpp
branchRCL_3
changeset 16 71dd06cfe933
parent 4 8ca85d2f0db7
child 55 aecbbf00d063
equal deleted inserted replaced
15:08e69e956a8c 16:71dd06cfe933
  1925 	TRect blankRect;
  1925 	TRect blankRect;
  1926 	for (TInt i = aStartItemIndex; i <= aEndItemIndex; i++)
  1926 	for (TInt i = aStartItemIndex; i <= aEndItemIndex; i++)
  1927 		{
  1927 		{
  1928 		blankRect.SetRect(ItemPos(i), ItemSize());
  1928 		blankRect.SetRect(ItemPos(i), ItemSize());
  1929 		blankRect.Intersection(iViewRect);
  1929 		blankRect.Intersection(iViewRect);
  1930 
  1930 		if ( blankRect.Width() > 0 && blankRect.Height() > 0 )
  1931 		MAknsSkinInstance *skin = AknsUtils::SkinInstance();
  1931 		    {
  1932 		CFormattedCellListBoxItemDrawer *id = (CFormattedCellListBoxItemDrawer*)ItemDrawer();
  1932 		    MAknsSkinInstance *skin = AknsUtils::SkinInstance();
  1933 		if (id->FormattedCellData()->Control())
  1933 		    CFormattedCellListBoxItemDrawer *id = 
  1934 			{
  1934                 (CFormattedCellListBoxItemDrawer*)ItemDrawer();
  1935 			MAknsControlContext *cc = AknsDrawUtils::ControlContext( id->FormattedCellData()->Control() );
  1935 		    if ( id->FormattedCellData()->Control())
  1936 			if ( !cc )
  1936 		    	{
  1937 			    {
  1937 		        MAknsControlContext *cc = 
  1938 			    cc = id->FormattedCellData()->SkinBackgroundContext();
  1938                     AknsDrawUtils::ControlContext( id->FormattedCellData()->Control() );
  1939 			    }
  1939 		        if ( !cc )
  1940 			AknsDrawUtils::Background( skin, cc, id->FormattedCellData()->Control(), *iGc, blankRect );
  1940 		        	{
  1941 			}
  1941 		            cc = id->FormattedCellData()->SkinBackgroundContext();
  1942 		else
  1942 		        	}
  1943 			{
  1943 		        AknsDrawUtils::Background( skin, 
  1944 			iGc->Clear(blankRect);
  1944                                            cc, 
  1945 			}
  1945                                            id->FormattedCellData()->Control(), 
       
  1946                                            *iGc, 
       
  1947                                            blankRect );
       
  1948 		    	}
       
  1949 		    else
       
  1950 		    	{
       
  1951 		        iGc->Clear(blankRect);
       
  1952 		    	}
       
  1953 		   	}
  1946 		}
  1954 		}
  1947 	_AKNTRACE_FUNC_EXIT;
  1955 	_AKNTRACE_FUNC_EXIT;
  1948 	}
  1956 	}
  1949 
  1957 
  1950 EXPORT_C void CAknGridView::UpdateHScrollOffsetBasedOnTopItemIndex()
  1958 EXPORT_C void CAknGridView::UpdateHScrollOffsetBasedOnTopItemIndex()