Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Modifying a ribbon control at runtime

I'm using the Windows Ribbon Framework in an unmanaged C++ application in Visual Studio. Is it possible to add a button or other control at runtime? I can set up my ribbon using IUIFramework::LoadUI, but I can't modify it afterwards.

like image 446
sw. Avatar asked Apr 09 '26 01:04

sw.


1 Answers

It is not possible to add or remove a button at runtime, but you may hide or show a Tab or Group at run time using Application Modes and you can set any button texts and images at runtime.

So you can declare and use multi-purpose buttons that will show only when a specific Application Mode is set and contain runtime defined texts and images.

like image 142
Alain Rist Avatar answered Apr 10 '26 17:04

Alain Rist



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!