Re: [Iup-users] Question about NATIVEPARENT
Brought to you by:
scuri
From: Antonio S. <sc...@te...> - 2009-08-25 17:07:23
|
Ok. Thanks. scuri From: Robert Persson [mailto:r.k...@gm...] Sent: terça-feira, 25 de agosto de 2009 11:11 To: IUP discussion list. Subject: Re: [Iup-users] Question about NATIVEPARENT I've already tried to use a known HWND (when using it, i compared it to GetForegroundWindow result, and it was exactly the same). The result/problem is the same. I'll see if I can create a minimal c application that reproduces this problem (instead of the mastodontic piece of code I have here) /Robert.P. 2009/8/25 Antonio Scuri <sc...@te...> Hi, Instead of using GetForegroundWindow try using a known HWND of your application, even it is just a hack to test the NATIVEPARENT attribute. About MainLoop, if you simply call it with no visible dialogs it will successfully end. But depending on the context it may lock, although it was designed not too. In this case we need a sample that reproduces the problem so we can debug it here to check what's going on. Best, scuri > -----Original Message----- > From: Robert Persson [mailto:r.k...@gm...] > Sent: terça-feira, 25 de agosto de 2009 05:43 > To: IUP discussion list. > Subject: [Iup-users] Question about NATIVEPARENT > > Hi Scuri. > > When I create a small application using IUP (that is an extension to an > existing application), I create a simple dialog and set NATIVEPARENT to > the hwnd of the GetForegroundWindow() in the application, I get an > "Error during IupMap" message when the dialog is shown or popupped. Is > there something else one has to do to hook onto a native application? I > use Windows Vista, IUP3 with version date "2009/07/18", I think it is > RC2. > > A minor bug: IupMainLoop locks up if called when no IUP Dialogs are > visible. I noticed this when, by accident doing an IupPopup() of a > dialog and then called IupMainLoop after it was closed... > > /Robert Persson, IGEMS Software AB, Sweden > > ---------------------------------------------------------------------------- -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Iup-users mailing list Iup...@li... https://lists.sourceforge.net/lists/listinfo/iup-users |