Anyway to answer my own question :).
Excel's main window has an "ITaskList_Deleted" window property if the
dummy windows exist.
Powerpoint behaves very similarly. And Kingsoft Office appears to do
something like that except without the ITaskList_Deleted window property.
Link.
At 02:32 AM 1/14/2010, Lincoln Yeoh wrote:
Hi,
With python win32 is there a way to get only the windows that are
represented by the buttons of the Windows taskbar (or the windows
listed in the "alt-tab" list)?
I have found various ways of doing so, but I can't seem to get them
to work with Excel's windows.
From what I observe (I may be wrong though), Excel by default
appears to have a main window and some "dummy windows"
(classname=MS-SDIb) representing the opened Excel documents. If you
click on those "dummy windows" the relevant excel document gets
foregrounded in the _main_ window (not the dummy windows).
If three Excel documents are opened, there are four top level Excel
windows (or at least they appear to be top level to me) - the main,
and three MS-SDIb ones. But the taskbar and alt-tab list only show 3
items. What logic should one use to create the same list?
_______________________________________________
python-win32 mailing list
python-win32@python.org
http://mail.python.org/mailman/listinfo/python-win32