OK, so it it turns out, the window will maximize when SW_MAXIMIZE =3. But where can I find some documentation for that?
Etayki wrote: > 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? -- http://mail.python.org/mailman/listinfo/python-list