[python-win32] Is pure-win32 GetWindowPlacement() available ?
Pierre Rouleau
Pierre_Rouleau at ImpathNetworks.com
Fri Jun 16 15:32:57 CEST 2006
Roger Upole wrote:
> Pierre Rouleau wrote:
>
>>I have been looking for a wrapper for the Win32 function
>>GetWindowPlacement() but could not find it in the latest version of
>>Python for Windows extension (version 208). I saw a reference to
>>PyCWnd.GetWindowPlacement() where a MFC CWnd is needed but could not
>>find a pure Win32 version.
>>
>>Does anyone know if this is/will be wrapped?
>>
>
> You can use win32ui.CreateWindowFromHandle to wrap a raw
> window handle in a PyCWnd, and then use its GetWindowPlacement
> method.
> It would be relatively simple to wrap this function in
> win32gui also, mostly cut-n-paste from win32ui.
>
> Roger
That's what I'll do, thanks!
--
Pierre Rouleau
More information about the Python-win32
mailing list