Redrawing window of Office application

A

Andrey Dzizenko

Hi there!


My application is an add-in to MS Office 2003. When you press a button the
form is opened.

So when trying to move that form MS Office window doesn't get any messages
and doesn't become invalidated. My form leaves a trace on the main form
window.

Maybe my form has some wrong parameters... Or maybe I need to invalidate
Office window manually...
What do you think?

Thanks in advance for any ideas.


Best regards,
Andrey Dzizenko.
 
D

David Thielen

That should not be happening - are you somehow stopping other apps
from processing their messages?


Hi there!


My application is an add-in to MS Office 2003. When you press a button the
form is opened.

So when trying to move that form MS Office window doesn't get any messages
and doesn't become invalidated. My form leaves a trace on the main form
window.

Maybe my form has some wrong parameters... Or maybe I need to invalidate
Office window manually...
What do you think?

Thanks in advance for any ideas.


Best regards,
Andrey Dzizenko.


david@[email protected]
Windward Reports -- http://www.WindwardReports.com
me -- http://dave.thielen.com

Cubicle Wars - http://www.windwardreports.com/film.htm
 
A

Andrey Dzizenko

Nope.

Other apps get messages normally. Even if I open my form from e.g. MS Word
window, another MS Word window also gets messages.

I solved this problem by sending WM_PAINT to the Office window manually
when moving the form. But strange behavior of my windows is still
interesting for me =)



23.10.08 × 19:05 David Thielen × Ó×Ï£Í ÐÉÓØÍÅ ÐÉÓÁÌ(Á):
 
C

Cindy M.

Hi Andrey,
My application is an add-in to MS Office 2003. When you press a button the
form is opened.

So when trying to move that form MS Office window doesn't get any messages
and doesn't become invalidated. My form leaves a trace on the main form
window.

Maybe my form has some wrong parameters... Or maybe I need to invalidate
Office window manually...
Which Office application are you opening the window over? Have you set
ScreenUpdating = False for that application? If yes, I'd expect to see what
you describe.

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 17 2005)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question or
reply in the newsgroup and not by e-mail :)
 

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