Each item in the toolbar should have a unique ID. Use these IDs to access the toolbar items in your application.
The example below shows how to access toolbar items using the contol ID.
void CMyAppView::DoSomethingToButton() { CAknToolbar* toolbar = Toolbar(); if ( toolbar ) { CAknButton* button = static_cast<CAknButton*>( toolbar->ControlOrNull( KButtonId ) ); if ( button ) { ... } } }
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.