wxMac & Plug-in Hosting
Stefan Csomor
csomor at advancedconcepts.ch
Thu Dec 28 22:01:47 PST 2006
Hi
Sorry, I first missed what the real issue was in this thread
On mac top-level windows are totally different (WindowRef) from controls (ControlRef / HIViewRef (these types are interchangeable)), a GetHandle() always returns a ControlRef, either for a sub control or for the background panel of the top-level window.
If you want a WindowRef from a toplevel window frame / dialog you need to call MacGetWindowRef on that instance or MacGetTopLevelWindowRef() on any sub window
Best,
Stefan
> -----Original Message-----
> From: Manfred Hanke [mailto:annonce at free.fr]
> Sent: Donnerstag, 28. Dezember 2006 19:17
> To: wx-users at lists.wxwidgets.org
> Subject: Re: wxMac & Plug-in Hosting
>
>
> Yes ... I use this on MSW, give the HWND to FX, and the GUI of the
> plugin,
> is open right on the wxWindow but in wxMac, that is not woking !
>
> If I create a window with "CreateNewWindow" (carbon api) and give
> the
> windowRef to the plugin this is OK and work,
> but from a wxPanel (GetHandle() ) that not work..
>
>
> ""Bjoern Petersen"" <silverjuke at gmail.com> a écrit dans le message de
> news:bd17bfe30612280135q2db5314dq3c6d62d596a96149 at mail.gmail.com...
> > 2006/12/25, Manfred Hanke <annonce at free.fr>:
> >
> > > code for MSW and MAC the same.
> > >
> > > EffDispatch(effEditOpen, 0, 0, ptr /* the handle of wxWindow */ )
> >
> > You should use ptr.GetHandle() to obtain the "real" system HWND or
> > WindowPtr. (or do you already mean this when writing "ptr")
> >
> > --
> > http://www.silverjuke.net
> >
> > -------------------------------------------------------------------
> --
> > To unsubscribe, e-mail: wx-users-unsubscribe at lists.wxwidgets.org
> > For additional commands, e-mail: wx-users-help at lists.wxwidgets.org
> >
>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: wx-users-unsubscribe at lists.wxwidgets.org
> For additional commands, e-mail: wx-users-help at lists.wxwidgets.org
More information about the wx-users
mailing list