Re: [python-win32] Pythonwin MDI Child Size

2011-09-02 Thread Manfred Schulte-Oversohl
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]

[python-win32] Pythonwin MDI Child Size

2011-08-31 Thread Manfred Schulte-Oversohl
I tried to fill a MDI child at start up or on open to the full size of the enclosing frame but self.ShowWindow(win32con.SW_SHOWMAXIMIZED) or self.SetWindowPlacement(placement) did not work (self is the MDI Child PyCWnd). Did I miss something or is it impossible? Many thanks for