comp.lang.ada
 help / color / mirror / Atom feed
From: "Bill Rawlinson" <billrawlinson@hockeymail.com>
Subject: Re: passing an Hwnd from a C lang prog to a MFC dll
Date: 1999/12/15
Date: 1999-12-15T00:00:00+00:00	[thread overview]
Message-ID: <ugE54.3073$Mz6.755339@news1.rdc2.pa.home.com> (raw)
In-Reply-To: quvb5ssmdbp14rhucjra7ahht1irg3v9i4@4ax.com

David
Hope you don't mind me asking some more about this.. but when you attach the
hwnd don't you get an assertion failure if the hwnd /= NULL?

If not.. then i must be screwing up elsewhere and just think that it is
here.

thanks for your help
Bill

David Lowndes <davidl@mvps.org> wrote in message
news:quvb5ssmdbp14rhucjra7ahht1irg3v9i4@4ax.com...
> >I want to be able to associate the passed Hwnd with a Cwnd so that I can
> >create the instance of the CDialog.   Cwnd::Attach(new Hwnd) doesn't
work..
>
> Bill,
>
> It should work. I've used it like this:
>
> CWnd Parent;
> Parent.Attach( hwnd );
>
> CMyDlg dlg( &Parent );
>
> Dave
> --
> My address is altered to discourage junk mail.
> Please post responses to the newsgroup thread,
> there's no need for follow-up email copies.






      parent reply	other threads:[~1999-12-15  0:00 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-12-13  0:00 passing an Hwnd from a C lang prog to a MFC dll bill rawlinson
1999-12-14  0:00 ` David Lowndes
1999-12-14  0:00   ` Mark McIntyre
1999-12-17  0:00     ` David Botton
1999-12-15  0:00   ` Bill Rawlinson [this message]
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox