Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Command Bars
  New Posts New Posts RSS Feed - Ribbon Load/SaveCommandBars in RibbonResource
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Ribbon Load/SaveCommandBars in RibbonResource

 Post Reply Post Reply
Author
Message
mihey View Drop Down
Groupie
Groupie
Avatar

Joined: 14 May 2003
Location: Germany
Status: Offline
Points: 45
Post Options Post Options   Thanks (0) Thanks(0)   Quote mihey Quote  Post ReplyReply Direct Link To This Post Topic: Ribbon Load/SaveCommandBars in RibbonResource
    Posted: 17 May 2017 at 7:16am
Hi,

I'm trying to integrate saving/loading Ribbon state into my application but without a success till now.

The strange thing is - this also doesn't work even with RibbonResource sample project.

I took the sample project, add:

void CMainFrame::OnClose()
{
     SaveCommandBars("CommandBars");
     CXTPMDIFrameWnd::OnClose();
}


handler and enhanced:
CMainFrame::OnCreate
{
...
        LoadCommandBars("CommandBars");

     return 0;
}


as the last line before the return.

If now I open the sample; minimize the ribbon or switch quick access bar below the ribbon and close it. I do not see any changes saved after I start the sample again.

My question - should this work in combination with CXTPRibbonBuilder together in general?
If yes - that do I do wrong?

Best regards,
Mikhail


XTP17.3.0, VC++, VS2015, Win 7x64

   
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.203 seconds.