[python-win32] Pythonwin MDI Child Size

Manfred Schulte-Oversohl M.Schulte-Oversohl at pragmatis.de
Fri Sep 2 17:50:28 CEST 2011


This is a way I solved it, maybe someone is interested.

class ScrollView(pywin.mfc.docview.ScrollView):

      def OnInitialUpdate(self):
        #...
        frame = win32ui.GetMainFrame()
        rect = frame.GetClientRect()
        self.SetScrollSizes(win32con.MM_TEXT, (rect[2] - 18, rect[3] -55))
        self.GetParentFrame().RecalcLayout()
        self.ResizeParentToFit(0)
        #...

Cheers

Manfred
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-win32/attachments/20110902/b9b438c6/attachment.html>


More information about the python-win32 mailing list