how to remove toolbar from normal.dot?

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
 
J

Jerry Nettleton

I've tried taking a look at the 'NormalTemplate' property but didn't find
anything get a list of items to search and then delete the one that I
created.:

CString str;
TemplatePtr spNormal = m_spApplication->NormalTemplate;
str.Format(_T("Normal Name = %s\n"), (TCHAR *) spNormal->Name);
OutputDebugString(str.GetString());
 
J

Jerry Nettleton

I'm still waiting for a response after 9 business days. For MSDN managed
newsgroups, I was expecting to "get an answer from the newsgroup community
or a Microsoft support professional within 2 business days". Does using a
web browser make it difficult to implement this subscription benefit? With
the web browser, I can't manually enter my email alias. Is a newsreader
required so that my email alias gets into the message properly (for a 2 day
response)? I have used the same passport login to 'sign in' to submit my
questions which is associated with my MSDN subscription. I'm just wondering
if posting messages with a web browser doesn't work for a 2 day response.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top