G
Guido Kraus
I have a COM add-in for Word. It creates a custom CommandBar with a
CommandBarPopup that has several dozens subitems (CommandBarPopups and
CommandBarButtons). If the CommandBarPopup at the root of this customized
menu structure exists at startup the COM add-in deletes the root element and
recreates the whole menu structure.
Everything works fine except that Normal.dot grows by 80 KB at every restart
of Word. Even if you uninstall the add-in and manually delete my custom menu
bar Normal.dot keeps its current size.
The details:
In OnStartupComplete I search for my custom CommandBar and delete it if it
is found (cmdBar.delete()). Then I create my custom CommandBar which has one
CommandBarPopup (the root element of my menu structure):
cmdBar.Controls.Add(msoControlPopup). I do the same thing to create submenus
and submenu items.
Any idea why Normal.dot keeps growing?
Thanks,
Guido
CommandBarPopup that has several dozens subitems (CommandBarPopups and
CommandBarButtons). If the CommandBarPopup at the root of this customized
menu structure exists at startup the COM add-in deletes the root element and
recreates the whole menu structure.
Everything works fine except that Normal.dot grows by 80 KB at every restart
of Word. Even if you uninstall the add-in and manually delete my custom menu
bar Normal.dot keeps its current size.
The details:
In OnStartupComplete I search for my custom CommandBar and delete it if it
is found (cmdBar.delete()). Then I create my custom CommandBar which has one
CommandBarPopup (the root element of my menu structure):
cmdBar.Controls.Add(msoControlPopup). I do the same thing to create submenus
and submenu items.
Any idea why Normal.dot keeps growing?
Thanks,
Guido