Article View: borland.public.cppbuilder.nativeapi
Article #2971Re: Calling .Net code
From: Remy Lebeau (TeamB)
Date: Tue, 24 Oct 2006 20:44
Date: Tue, 24 Oct 2006 20:44
16 lines
1600 bytes
1600 bytes
"Bob Piskac" <bob@pbsoftware.com> wrote in message news:453e737f$1@newsgroups.borland.com... > I want to display a managed code button in my unmanaged CPP application. Managed controls can only (officially) appear inside of other managed controls and managed windows. There is no direct access available to specify an unmanaged owner window for a managed control. So you will need to either have your unmanaged application tell the assembly to show its own managed window, or else you will have to use PInvoke to call the Win32 API SetParent() function to reparent the managed control's Handle to an unmanaged parent window. Gambit
Technical Details
Message-ID:
<453e7b63$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<45319f54$1@newsgroups.borland.com> <4533c3b4$1@newsgroups.borland.com> <453e737f$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,930b64d8f249fdd6 X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <45319f54$1@newsgroups.borland.com> <4533c3b4$1@newsgroups.borland.com> <453e737f$1@newsgroups.borland.com> Subject: Re: Calling .Net code Date: Tue, 24 Oct 2006 13:44:39 -0700 Lines: 18 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1409 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 NNTP-Posting-Host: 69.169.4.232 Message-ID: <453e7b63$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1161722723 69.169.4.232 (24 Oct 2006 13:45:23 -0700) Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail