PDA

View Full Version : win.IsZoomed() bug/nuance?



Agonostis
January 22nd, 2006, 08:14 PM
win.IsZoomed([handle]) returns false for me no matter the state of the targetted window. I think it's supposed to return true when the window is maximized?

win.IsIconic([handle]) properly returns 1 when the the same window is minimized, false other times.

Usage is on powerdvd 6 video window, on second monitor (plasma).

Is there something I'm missing about the usage?

Thanks!

Promixis
January 23rd, 2006, 09:17 AM
you are corrent about iszoomed. however, I am not it will work on the overlay window of powerdvd. the function simply returns the result of the windows api call

Agonostis
January 23rd, 2006, 09:51 AM
Bummer. Maybe you can help me with my overall goal: writing a macro that always results in PowerDVD open, in focus, and maximized to my 2nd monitor.

The win.ShowWindow(handle, SHOWMAXIMIZED) toggles the window between maximized and restored (which is why i was looking at win.IsZoomed() for a way to tell its state)

Any further suggestions?

Promixis
January 23rd, 2006, 09:57 AM
? get the window size and compare to the screen size?