From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,FREEMAIL_FROM, INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f7a51,adf78995e627c64b X-Google-Attributes: gidf7a51,public X-Google-Thread: 1014db,adf78995e627c64b X-Google-Attributes: gid1014db,public X-Google-Thread: 103376,adf78995e627c64b X-Google-Attributes: gid103376,public X-Google-Thread: 109fba,adf78995e627c64b X-Google-Attributes: gid109fba,public From: "Bill Rawlinson" Subject: Re: passing an Hwnd from a C lang prog to a MFC dll Date: 1999/12/15 Message-ID: #1/1 X-Deja-AN: 560823452 References: <385561c4.0@munix01.marshall.edu> X-Priority: 3 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 X-Complaints-To: abuse@home.net X-Trace: news1.rdc2.pa.home.com 945229978 24.7.212.75 (Tue, 14 Dec 1999 19:52:58 PST) Organization: @Home Network X-MSMail-Priority: Normal NNTP-Posting-Date: Tue, 14 Dec 1999 19:52:58 PST Newsgroups: comp.lang.ada,comp.lang.c,comp.lang.c++,microsoft.public.vc.language Date: 1999-12-15T00:00:00+00:00 List-Id: 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 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.