[python-win32] win32api: How to send WM_SIZING to a Window

Andreas Holtz A.Holtz at gmx.net
Thu Sep 30 23:38:34 CEST 2010


Of course I tried it and it is not working. I am trying for two days now.
The Interactive-switch is just preventing user inputs (this works fine).

The COM implementation is "suboptimal". There are a lot of features you can not access via COM.
Don't ask me why. Due to this suboptimal behaviour, I need this stupid hack.

The question is now, what is a correct WM_SIZING-message?
With a string for the rect, a RECT-object, two words or something else?
It can't be possible that I am the first person sending a WM_SIZING-message to a window in python?

schrieb Tim Roberts am 30.09.2010 23:12:
>   Andreas Holtz wrote:
>> The program is CATIA from Dassault.
>> They have a parameter to control the refresh of
>> the display (CATIAApplication.RefreshDisplay = False) but this
>> only works within their macro engine. For details see here:
>> http://ww3.cad.de/foren/ubb/Forum137/HTML/001099.shtml#000002
>
> Have you tried it?  That's exactly the switch you need.  Although I
> don't speak German, there's also a reference to an "Interactive"
> property that might help you.
>
> (I believe their explanation is justifying a bug, not describing
> necessary behavior.  Many COM servers handle this just fine.)
>
> Beyond that, you're just hacking, and you'll need to experiment.
>


More information about the python-win32 mailing list