uifw/AvKon/src/akndiscreetpopupdrawer.cpp
branchRCL_3
changeset 15 08e69e956a8c
parent 4 8ca85d2f0db7
child 55 aecbbf00d063
equal deleted inserted replaced
10:9f56a4e1b8ab 15:08e69e956a8c
   217 void CAknDiscreetPopupDrawer::Draw( CWindowGc& aGc, 
   217 void CAknDiscreetPopupDrawer::Draw( CWindowGc& aGc, 
   218         const TRect& aRect ) const
   218         const TRect& aRect ) const
   219     {
   219     {
   220     // draw background of the popup 
   220     // draw background of the popup 
   221     MAknsSkinInstance* skin = AknsUtils::SkinInstance();
   221     MAknsSkinInstance* skin = AknsUtils::SkinInstance();
   222     AknsDrawUtils::DrawFrame( skin, aGc, aRect, aRect, 
   222     TAknLayoutRect innerLayout;
       
   223     // Use bg_popup_preview_window_pane_g1() for getting innerRect, 
       
   224     // no need to create a new layout id for discreet popup.
       
   225     innerLayout.LayoutRect( aRect, 
       
   226             	AknLayoutScalable_Avkon::bg_popup_preview_window_pane_g1() );        
       
   227     TRect innerRect = innerLayout.Rect();  
       
   228     
       
   229     AknsDrawUtils::DrawFrame( skin, aGc, aRect, innerRect, 
   223         KAknsIIDQsnFrPopupPreview, KAknsIIDDefault );
   230         KAknsIIDQsnFrPopupPreview, KAknsIIDDefault );
   224     
   231     
   225     // Draw the texts
   232     // Draw the texts
   226     TRgb textColor( EikonEnv()->ControlColor( EColorControlText, *iControl ) );
   233     TRgb textColor( EikonEnv()->ControlColor( EColorControlText, *iControl ) );
   227 
   234