U
upxtechie
Hello,
I have been trying to work out a solution for some time to solve a problem
with modal dialogs. Starting the modal dialog from the COM Add-In (MS Word
2000) is okay and basically behaves as expected - as long as I do not change
to the window of another application. But when the modal dialog is shown and
I switch to another window (e.g. windows explorer) and return back to my
Office application by means of the taskbar (click on the instance of the
office application in the taskbar) the trouble begins. The frame of the
office application is opened, but it's contents is only partly
refreshed/repainted. The application does not receive the focus, probably due
to the modal dialog which is still open. But that modal dialog is not shown
(repainted). The only way I have found to get the modal dialog shown again is
to set the focus to another application (e.g windows explorer, maximise it in
size, and minimize it in size. Only now the modal dialog is shown again.
Some technical details:
I have developed my add-in with Visual Studio 6 (SP6) + MS Office Developer,
with Win2000 SP3 and MS Office 2000 SP3 in the background.
I have tested the display of the modal dialogs (without success) with the
following calls inside the word designer object:
frmXY.show vbModal
frmXY.show vbModal, Me
I have also tried the API function SetWindowPos Lib "User32" (...) without
success.
Any help will be appreciated very much.
Thanks - Joerg
I have been trying to work out a solution for some time to solve a problem
with modal dialogs. Starting the modal dialog from the COM Add-In (MS Word
2000) is okay and basically behaves as expected - as long as I do not change
to the window of another application. But when the modal dialog is shown and
I switch to another window (e.g. windows explorer) and return back to my
Office application by means of the taskbar (click on the instance of the
office application in the taskbar) the trouble begins. The frame of the
office application is opened, but it's contents is only partly
refreshed/repainted. The application does not receive the focus, probably due
to the modal dialog which is still open. But that modal dialog is not shown
(repainted). The only way I have found to get the modal dialog shown again is
to set the focus to another application (e.g windows explorer, maximise it in
size, and minimize it in size. Only now the modal dialog is shown again.
Some technical details:
I have developed my add-in with Visual Studio 6 (SP6) + MS Office Developer,
with Win2000 SP3 and MS Office 2000 SP3 in the background.
I have tested the display of the modal dialogs (without success) with the
following calls inside the word designer object:
frmXY.show vbModal
frmXY.show vbModal, Me
I have also tried the API function SetWindowPos Lib "User32" (...) without
success.
Any help will be appreciated very much.
Thanks - Joerg