[python-win32] Resize a control? How?

Michiel Vleugel mvleugel at michielvleugel.com
Mon Mar 13 19:14:47 CET 2006


Hello,

I'm having a tough time resizing a control using the win32gui/win32con etc. extensions.

I can override the onsize method of a control by doing:

    self.HookMessage (self.OnSize, win32con.WM_SIZE)

Then on the OnSize I can get the size of the control using GetClientSize()
So far so good.

But how on eatrh can I set new widths and heights of a control? Do I have to re-create the control using CreateWindow? Isn't there another way?

Cheers,
Michael Vleugel

    
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/python-win32/attachments/20060313/0503788e/attachment.html 


More information about the Python-win32 mailing list