diff -r 4816d766a08a -r f345bda72bc4 Symbian3/PDK/Source/GUID-A168E5EB-4CF7-4B74-B67C-EDFD5378C5BF.dita --- a/Symbian3/PDK/Source/GUID-A168E5EB-4CF7-4B74-B67C-EDFD5378C5BF.dita Tue Mar 30 11:42:04 2010 +0100 +++ b/Symbian3/PDK/Source/GUID-A168E5EB-4CF7-4B74-B67C-EDFD5378C5BF.dita Tue Mar 30 11:56:28 2010 +0100 @@ -1,37 +1,37 @@ - - - - - -Accessing -toolbar extension items -

Like with the actual toolbar, each control in the toolbar extension should -have a unique ID. You can access the toolbar extension controls from your -application using these IDs.

-

The example below shows how to access toolbar extension items using the -contol ID.

-void CMyAppView::DoSomethingToExtensionButton() - { - CAknToolbar* toolbar = Toolbar(); - if ( toolbar ) - { - CAknToolbarExtension* toolbarExtension = toolbar->ToolbarExtension(); - if ( toolbarExtension ) - { - CAknButton* button = - static_cast<CAknButton*>( toolbarExtension->ControlOrNull( KExtensionButtonId ) ); - if ( button ) - { - ... - } - } - } - } - + + + + + +Accessing +toolbar extension items +

Like with the actual toolbar, each control in the toolbar extension should +have a unique ID. You can access the toolbar extension controls from your +application using these IDs.

+

The example below shows how to access toolbar extension items using the +contol ID.

+void CMyAppView::DoSomethingToExtensionButton() + { + CAknToolbar* toolbar = Toolbar(); + if ( toolbar ) + { + CAknToolbarExtension* toolbarExtension = toolbar->ToolbarExtension(); + if ( toolbarExtension ) + { + CAknButton* button = + static_cast<CAknButton*>( toolbarExtension->ControlOrNull( KExtensionButtonId ) ); + if ( button ) + { + ... + } + } + } + } +
\ No newline at end of file