[python-win32] Pythonwin Combobox

2011-08-19 Thread Manfred Schulte-Oversohl
I played with controls on a window (no dialog). For example an edit control with CreateEdit() and everything works fine. I'd like to use a combobox control. Getting it with dialog is no problem. But I could not create a combobox on a window. With the following code I got an error by CreateWindow

Re: [python-win32] Pythonwin Combobox

2011-08-20 Thread Manfred Schulte-Oversohl
Hi Greg, that did exactly what I want! Thank you very much. Cheers Manfred ___ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

[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

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] -5