PC Review Forums Newsgroups Microsoft Outlook Microsoft Outlook VBA Programming Trapping move events

Reply

Trapping move events

 
Thread Tools Rate Thread
Old 09-08-2004, 09:49 AM   #1
Lars Roland
Guest
 
Posts: n/a
Default Trapping move events


Hi

I have a outlook COM addin that installes an extra toolbar in outlook.
This toolbar is created as an tempoary toolbar, because of this, outlook
can not remeber its position.

This creates problem if the user whant to move the toolbar to another
position, because he/she has to do this every time outlook starts. My
question is if I someway can trap the event when the user moves the
toolbar and save the new position in a registry entry and then when
outlook starts I can read this value and place the toolbar at the correct
position.



Regards

Lars Roland
  Reply With Quote
Old 09-08-2004, 05:52 PM   #2
Dmitry Streblechenko \(MVP\)
Guest
 
Posts: n/a
Default Re: Trapping move events

All you really need to do is to query the toolbar position once, when your
addin is being destroyed (or when Explorer.Close event fires) and store the
position somewhere.

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool


"Lars Roland" <roland@diku.dk> wrote in message
news:Pine.LNX.4.58.0408091045001.16563@brok.diku.dk...
> Hi
>
> I have a outlook COM addin that installes an extra toolbar in outlook.
> This toolbar is created as an tempoary toolbar, because of this, outlook
> can not remeber its position.
>
> This creates problem if the user whant to move the toolbar to another
> position, because he/she has to do this every time outlook starts. My
> question is if I someway can trap the event when the user moves the
> toolbar and save the new position in a registry entry and then when
> outlook starts I can read this value and place the toolbar at the correct
> position.
>
>
>
> Regards
>
> Lars Roland



  Reply With Quote
Old 10-08-2004, 07:50 AM   #3
Lars Roland
Guest
 
Posts: n/a
Default Re: Trapping move events

Ofcause, that will make it much simpler - thank you


On Mon, 9 Aug 2004, Dmitry Streblechenko (MVP) wrote:

> All you really need to do is to query the toolbar position once, when your
> addin is being destroyed (or when Explorer.Close event fires) and store the
> position somewhere.
>
> Dmitry Streblechenko (MVP)
> http://www.dimastr.com/
> OutlookSpy - Outlook, CDO
> and MAPI Developer Tool
>
>
> "Lars Roland" <roland@diku.dk> wrote in message
> news:Pine.LNX.4.58.0408091045001.16563@brok.diku.dk...
> > Hi
> >
> > I have a outlook COM addin that installes an extra toolbar in outlook.
> > This toolbar is created as an tempoary toolbar, because of this, outlook
> > can not remeber its position.
> >
> > This creates problem if the user whant to move the toolbar to another
> > position, because he/she has to do this every time outlook starts. My
> > question is if I someway can trap the event when the user moves the
> > toolbar and save the new position in a registry entry and then when
> > outlook starts I can read this value and place the toolbar at the correct
> > position.
> >
> >
> >
> > Regards
> >
> > Lars Roland

>
>
>

  Reply With Quote
Reply



Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off