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=0.2 required=5.0 tests=BAYES_00,INVALID_MSGID, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,adf78995e627c64b X-Google-Attributes: gid103376,public X-Google-Thread: 1014db,adf78995e627c64b X-Google-Attributes: gid1014db,public X-Google-Thread: 109fba,adf78995e627c64b X-Google-Attributes: gid109fba,public X-Google-Thread: f7a51,adf78995e627c64b X-Google-Attributes: gidf7a51,public From: Mark McIntyre Subject: Re: passing an Hwnd from a C lang prog to a MFC dll Date: 1999/12/14 Message-ID: <1NNWOC7RSh2Rk+gwNwkrvDlnSpqy@4ax.com>#1/1 X-Deja-AN: 560742060 Content-Transfer-Encoding: 7bit X-NNTP-Posting-Host: garthorn.demon.co.uk:158.152.83.188 References: <385561c4.0@munix01.marshall.edu> Content-Type: text/plain; charset=us-ascii X-Complaints-To: abuse@demon.net X-Trace: news.demon.co.uk 945214453 nnrp-09:19053 NO-IDENT garthorn.demon.co.uk:158.152.83.188 MIME-Version: 1.0 Reply-To: mark@garthorn.demon.co.uk Newsgroups: comp.lang.ada,comp.lang.c,comp.lang.c++,microsoft.public.vc.language Date: 1999-12-14T00:00:00+00:00 List-Id: On Tue, 14 Dec 1999 19:24:22 +0000, David Lowndes wrote: >>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 please take this away from Comp.lang.c as it is not c and has nothing to do with the ANSI C language. Mark McIntyre C- FAQ: http://www.eskimo.com/~scs/C-faq/top.html