Forum
Please
Log In
to post a new message or reply to an existing one. If you are not registered, please
register.
NOTE: Some forums may be read-only if you are not currently subscribed to
our technical support services.
Subject |
Author |
Date |
|
Ian McIntosh
|
Jan 24, 2007 - 5:37 AM
|
I am using a CExtRibbonBar. I create the main pages at start up and want to add extra pages to the existing ribbon bar after the application has started.
I call Ribbon_GetTabPageRootNode() to get the CExtRibbonNodeTabPageCollection, build my new tab pages and insert them into the CExtRibbonNodeTabPageCollection using InsertNode().
I expect to see my new tabs displayed, but they are not. What am I doing incorrectly?
|
|
Technical Support
|
Jan 24, 2007 - 12:25 PM
|
You should completely rebuild the ribbon’s root node and assign it using the CExtRibbonBar::SetButtons() method. The following project demonstrates how to do this.
|
|
Ian McIntosh
|
Jan 25, 2007 - 2:51 AM
|
Hi,
I downloaded the example, built & ran it. I click on the ’insert’ tab, click the ’INSERT TABPAGE’ button and get a crash with the following message: Unhandled exception at 0x00000000 in RibbonBar-md.exe: 0xC0000005: Access violation reading location 0x00000000.
I am using ProfUIS262md.dll
|
|
Ian McIntosh
|
Jan 25, 2007 - 3:35 AM
|
I have now tried using the code in the example in my app and it does seem to work. Thankyou.
|
|