Message 1 of 5
Restore custom toolbar's position in a plugin

Not applicable
03-08-2015
06:08 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
What is the best practice for restoring the position of a custom toolbar after Max has been restarted?
I see that the toolbar's config gets written to the user's workspace .cuix file when closing Max. But what do I need to do to restore these settings?
The SDK samples do not really give a hint on how to restore that.
It's a GUP-type plugin. The toolbar ist created with these commands
CreateCUIFrameWindow()
GetICUIFrame()
CreateWindow(CUSTTOOLBARWINDOWCLASS,....)
LinkToCUIFrame()
Toolbar->AddTool()
DockCUIWindow()
Thanks, Elio