Re: [python-win32] win32ui and resources for dialogs

2007-01-10 Thread Mark Hammond
> Hi Mark > > I made the following change: > > > --- > // @pymethod |PyCDialog|CreateWindow|Create a modeless window for the > dialog box. > static PyObject *ui_dialog_create_window( PyObject *self, > PyObject *args ) > { > AFX_MANAGE_STATE(AfxGetStaticModuleState()); > >

Re: [python-win32] win32ui and resources for dialogs

2007-01-10 Thread Michael Morisak
Mark Hammond schrieb: >> i tried to add this to the source of python-win32 >> but i refuses to compile with some link issue >> > > What issue is that? I'd like for pywin32 to build without too much effort - > and at least fail gracefully when it doesn't. > > As Niki says, avoiding MFC is a go

Re: [python-win32] win32ui and resources for dialogs

2007-01-10 Thread Mark Hammond
> i tried to add this to the source of python-win32 > but i refuses to compile with some link issue What issue is that? I'd like for pywin32 to build without too much effort - and at least fail gracefully when it doesn't. As Niki says, avoiding MFC is a good idea. You should also find win32gui

Re: [python-win32] win32ui and resources for dialogs

2007-01-10 Thread Niki Spahiev
Michael Morisak wrote: > > Does anybody know what i could do about this problem > I do not want to write this whole dlg in c++ since i would have to do a > lot of COM in this dialog then Do you really need MFC for dialogs? Using MFC for python plug-in is a PITA. We use ctypes for pure win32 dia

Re: [python-win32] win32ui and resources for dialogs

2007-01-10 Thread Michael Morisak
Michael Morisak schrieb: > Hi > > > I have the following Situation: > > I have a dialog resource in an dll and I want to open a modal dialog > with this resource. > > dlg= pywin.mfc.dialog.Dialog(myDialogID) > dlg.DoModal() > > works but the problem is that i would set the Parent of the Dialog > i

[python-win32] win32ui and resources for dialogs

2007-01-04 Thread Michael Morisak
Hi I have the following Situation: I have a dialog resource in an dll and I want to open a modal dialog with this resource. dlg= pywin.mfc.dialog.Dialog(myDialogID) dlg.DoModal() works but the problem is that i would set the Parent of the Dialog in MFC the CDialog Constructor allows to pass a