Bernd Schend
2009-06-14 13:52:20 UTC
Hi all,
I've developed an Addin for Word, which needs to react to the
WindowActivate and WindowDeactivate events.
Everything works fine unless one document window is in status
"ActivePane.View.SeekView = wdSeekCurrentPageHeader".
Example:
Assume, there are two Word documents A and B, which both are in
"wdNormalView". Then the WindowActivate event is fired when switching
from A to B and back from B to A.
However, if A is in status
"ActivePane.View.SeekView = wdSeekCurrentPageHeader".
then (at least with Word 2003) this happens:
a) Switching from A to B (via Strg + F6):
WindowDeactivate fired for A and WindowActivate for B
b) Switching back from B to A
WindowDeactivate fired for B (so far so good), but no WindowActivate
event for A!
Is there any deeper sense behind this behavior? In addition, is there
any way to have the WindowActivate event been fired regardless of the
Window state?
Thanks in advance for your answers.
Regards
Bernd
I've developed an Addin for Word, which needs to react to the
WindowActivate and WindowDeactivate events.
Everything works fine unless one document window is in status
"ActivePane.View.SeekView = wdSeekCurrentPageHeader".
Example:
Assume, there are two Word documents A and B, which both are in
"wdNormalView". Then the WindowActivate event is fired when switching
from A to B and back from B to A.
However, if A is in status
"ActivePane.View.SeekView = wdSeekCurrentPageHeader".
then (at least with Word 2003) this happens:
a) Switching from A to B (via Strg + F6):
WindowDeactivate fired for A and WindowActivate for B
b) Switching back from B to A
WindowDeactivate fired for B (so far so good), but no WindowActivate
event for A!
Is there any deeper sense behind this behavior? In addition, is there
any way to have the WindowActivate event been fired regardless of the
Window state?
Thanks in advance for your answers.
Regards
Bernd