J
Jerry N
I'm writing a COM add-in and delete the toolbar and menu in the
"OnDisconnection()" method with code show below. How can I remove the
toolbar from "normal.dot" file? When I select "Tools, Templates and
Add-Ins..., Templates tab, Organizer..." button, the toolbar I deleted is
still listed in normal.dot even after restarting Word.
if (RemoveMode != ext_dm_HostShutdown)
{
hr = OnBeginShutdown(custom);
if (SUCCEEDED(hr) && (RemoveMode == ext_dm_UserClosed))
{
RemoveToolBar(m_strProductName);
RemoveMenuBar(_T("Tools"), m_strProductName);
}
}
Thanks,
Jerry
"OnDisconnection()" method with code show below. How can I remove the
toolbar from "normal.dot" file? When I select "Tools, Templates and
Add-Ins..., Templates tab, Organizer..." button, the toolbar I deleted is
still listed in normal.dot even after restarting Word.
if (RemoveMode != ext_dm_HostShutdown)
{
hr = OnBeginShutdown(custom);
if (SUCCEEDED(hr) && (RemoveMode == ext_dm_UserClosed))
{
RemoveToolBar(m_strProductName);
RemoveMenuBar(_T("Tools"), m_strProductName);
}
}
Thanks,
Jerry