[Fredrik]
> oops. thought you were using ctypes, not the pythonwin extensions.
Even when I'm using ctypes I use win32con for the constants, unless
there's some special reason why I need the code to be independent of
pywin32.
--
Richie Hindle
[EMAIL PROTECTED]
--
http://mail.python.org/mailman
[Etayki]
> OK, so it it turns out, the window will maximize when SW_MAXIMIZE =3.
> But where can I find some documentation for that?
ShowWindow is a Win32 API call, so Googling within msdn.microsoft.com will
usually get you straight to the relevant documentation:
http://www.google.com/search?q=S
>> How do I get SW_MAXIMIZE to be defined?
>
> by grepping through the Windows header files to see what the corresponding
> value is, and using that value to set a Python variable in your script
oops. thought you were using ctypes, not the pythonwin extensions. see
richie's
reply for pythonwin
"Etayki" <[EMAIL PROTECTED]> wrote:
> 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
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')
[Etayki]
> How do I get SW_MAXIMIZE to be defined?
It's in win32con. Like this:
>>> from win32con import *
>>> SW_MAXIMIZE
3
--
Richie Hindle
[EMAIL PROTECTED]
--
http://mail.python.org/mailman/listinfo/python-list
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 functio