<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'><div><font face="Comic Sans MS" size="3">The best that I can found is this one, </font></div><div><a href="http://vtk.1045678.n5.nabble.com/Visual-C-forms-td1248419.html" target="_blank"><font face="Comic Sans MS" size="3">http://vtk.1045678.n5.nabble.com/Visual-C-forms-td1248419.html</font></a></div><div><font face="Comic Sans MS" size="3">as opposed to the instructions given in the posts, there is no option in </font></div><div><font face="Comic Sans MS" size="3">Cmake to set the variable<span style="background-color: rgb(255, 255, 255);"> VTK_USE_MFC = On.</span></font></div><div><font size="3"><font face="Comic Sans MS"><span style="background-color: rgb(255, 255, 255);"><br></span></font></font></div><div><font size="3"><font face="Comic Sans MS"><span style="background-color: rgb(255, 255, 255);">Having the examples under source folder ...</span></font><font face="Comic Sans MS">VTK-6.1.0\GUISupport\MFC </font></font><span style="font-size: 12pt; background-color: rgb(255, 255, 255);"><font face="Comic Sans MS" size="3">makes me </font></span></div><div><font face="Comic Sans MS"><span style="font-size: 12pt; background-color: rgb(255, 255, 255);"><font size="3">think that MFC is targeted in VTK but probably I didn't configured it </font></span><span style="font-size: 12pt; background-color: rgb(255, 255, 255);">properly. </span></font></div><div><span style="font-size: 12pt; background-color: rgb(255, 255, 255);"><font face="Comic Sans MS"><br></font></span></div><div><font face="Comic Sans MS">Regards,</font></div><div><hr id="stopSpelling">From: sonyablade2010@hotmail.com<br>To: vtkusers@vtk.org<br>Date: Tue, 10 Jun 2014 17:58:07 +0100<br>Subject: [vtkusers] How to embed VTK rendering context into Windows Form<br><br>


<div dir="ltr">

<style><!--
.ExternalClass .ecxhmmessage P {
padding:0px;
}

.ExternalClass body.ecxhmmessage {
font-size:12pt;
font-family:Calibri;
}

--></style>
<div dir="ltr"><font face="Comic Sans MS">Hi All,</font><div><font face="Comic Sans MS"><br></font></div><div><font face="Comic Sans MS">I was hoping to get VTK rendering window context to be embeded</font><span style="font-family:'Comic Sans MS';font-size:12pt;"> into Window Forms project.</span></div><div><span style="font-family:'Comic Sans MS';font-size:12pt;">by slightly modifying following code snippets given at the official wiki page,</span></div><div><a href="http://www.vtk.org/Wiki/VTK/Examples/Cxx/Visualization/RenderPassExistingContext" target="_blank">http://www.vtk.org/Wiki/VTK/Examples/Cxx/Visualization/RenderPassExistingContext</a></div><div><font face="Comic Sans MS">But this example seems that it is not exactly the right choice.</font></div><div><br></div><div><font face="Comic Sans MS" style="font-size:12pt;">I use </font><span style="font-size:12pt;font-family:'Comic Sans MS';">Visual C++ 2010 express edition to create </span><span style="font-size:12pt;font-family:'Comic Sans MS';">Windows Forms, all the other examples in Wiki </span></div><div><span style="font-size:12pt;font-family:'Comic Sans MS';">which shows how VTK RC can be embeded in another window are in C# language. </span></div><div><span style="font-size:12pt;font-family:'Comic Sans MS';"><br></span></div><div><span style="font-size:12pt;font-family:'Comic Sans MS';">Isn't there any example for C++?</span></div><div><span style="font-size:12pt;font-family:'Comic Sans MS';"><br></span></div><div><span style="font-size:12pt;font-family:'Comic Sans MS';">I'll appreciated your guidance,</span></div><div><span style="font-size:12pt;font-family:'Comic Sans MS';"><br></span></div><div><span style="font-size:12pt;font-family:'Comic Sans MS';"><br></span></div><div><font face="Comic Sans MS"><br></font></div></div>
                                          </div>
<br>_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ

Follow this link to subscribe/unsubscribe:
http://www.vtk.org/mailman/listinfo/vtkusers</div>                                          </div></body>
</html>