![]() |
Hosting .NET control inside docking pane? |
Post Reply ![]() |
Author | |
znakeeye ![]() Senior Member ![]() ![]() Joined: 26 July 2006 Status: Offline Points: 1672 |
![]() ![]() ![]() ![]() ![]() Posted: 03 December 2010 at 2:44am |
What would be the best technique to host a .NET control in a CXTPDockingPane? I know you can create a COM and attach it to a CWnd, but are there other techniques?
|
|
PokerMemento - http://www.pokermemento.com/
|
|
![]() |
|
rdhd ![]() Senior Member ![]() ![]() Joined: 13 August 2007 Location: United States Status: Offline Points: 909 |
![]() ![]() ![]() ![]() ![]() |
znakeeye,
Our approach was to create the client window for the docking pane. Then we create a Form, which has the .net controls in it and set the parent of the form to our client window. |
|
![]() |
|
dleibold ![]() Groupie ![]() ![]() Joined: 08 March 2010 Location: Canada Status: Offline Points: 13 |
![]() ![]() ![]() ![]() ![]() |
Note the CWinFormsControl class in MFC for embedding .NET forms.
|
|
![]() |
Post Reply ![]() |
|
Tweet
|
Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |