How can i save & restore the exact position of my custom toolbar?

  • Thread starter Thread starter Dieter Verlaeckt
  • Start date Start date
D

Dieter Verlaeckt

Hi,

I'm developing a COM-addin in VC++ .NET using ATL/MFC.

An easy question this time :)

Is there an easy way to save & restore the position of a custom toolbar
created by my addin?

I know that i can make the toolbar permanent, but then i have the find a way
to remove it from Outlook from my addin's uninstaller (Is there an easy way
to do that without visibly opening Outlook?).

TIA

Dieter
 
Always create it as temporary. Otherwise you are just asking for problems.

In your shut down code before the toolbar is destroyed (whether in Outlook
shut down or shut down of an Explorer or Inspector with that toolbar) save
the Position, Top and Left properties somewhere like an INI file or in the
registry and retrieve that information when your code is run again.
 
Thx, just what i needed..

Dieter

Ken Slovak - said:
Always create it as temporary. Otherwise you are just asking for problems.

In your shut down code before the toolbar is destroyed (whether in Outlook
shut down or shut down of an Explorer or Inspector with that toolbar) save
the Position, Top and Left properties somewhere like an INI file or in the
registry and retrieve that information when your code is run again.
 
Back
Top