uifw/EikStd/coctlsrc/akntoolbarextension.cpp
branchRCL_3
changeset 9 aabf2c525e0f
parent 0 2f259fa3e83a
child 29 a8834a2e9a96
equal deleted inserted replaced
4:8ca85d2f0db7 9:aabf2c525e0f
   199        
   199        
   200 
   200 
   201     // construct view from resource, items are standard TBAR_CTRL structures
   201     // construct view from resource, items are standard TBAR_CTRL structures
   202     iView = CAknToolbarExtensionView::NewL( aReader, this );
   202     iView = CAknToolbarExtensionView::NewL( aReader, this );
   203 
   203 
   204     aReader.ReadInt32();    // extension
   204     // Update the extension with given resource.
       
   205     TInt extensionLink = aReader.ReadInt32();    // extension
       
   206     if ( extensionLink != 0 )
       
   207     	{
       
   208     	CAknButtonState* state = State( 0 );
       
   209     	if ( state )
       
   210     		{
       
   211     		state->UpdateExtensionInfoL( extensionLink );    		
       
   212     		}
       
   213     	state = State( 1 );
       
   214     	if ( state )
       
   215     		{
       
   216     		state->UpdateExtensionInfoL( extensionLink );
       
   217     		}
       
   218     
       
   219     	}
       
   220     
   205     }
   221     }
   206     
   222     
   207 // ---------------------------------------------------------------------------
   223 // ---------------------------------------------------------------------------
   208 // From class CCoeControl.
   224 // From class CCoeControl.
   209 // Handles key events
   225 // Handles key events