undefined SW_MAXIMIZE for ShowWindow function
Etayki
etayluz at gmail.com
Fri Jul 14 10:06:40 EDT 2006
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?
More information about the Python-list
mailing list