undefined SW_MAXIMIZE for ShowWindow function

Etayki etayluz at gmail.com
Fri Jul 14 10:01:29 EDT 2006


Hi!

I'm trying to maximize a IE window. I have a handler and I'm trying to
call ShowWindow to maximize it:

ie = Dispatch('InternetExplorer.Application')
handler = ie.HWND
ie.Visible = 1
win32gui.ShowWindow(handler, SW_MAXIMIZE)

But then I get this error:
'SW_MAXIMIZE' is not defined

The function ShowWindow is defined (according to MSDN) as:

BOOL ShowWindow(          HWND hWnd,
    int nCmdShow
);

How do I get SW_MAXIMIZE to be defined?




More information about the Python-list mailing list