<html><head><style data-externalstyle="true"><!--
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph {
margin-top:0in;
margin-right:0in;
margin-bottom:0in;
margin-left:.5in;
margin-bottom:.0001pt;
}
p.MsoListParagraphCxSpFirst, li.MsoListParagraphCxSpFirst, div.MsoListParagraphCxSpFirst, p.MsoListParagraphCxSpMiddle, li.MsoListParagraphCxSpMiddle, div.MsoListParagraphCxSpMiddle, p.MsoListParagraphCxSpLast, li.MsoListParagraphCxSpLast, div.MsoListParagraphCxSpLast {
margin-top:0in;
margin-right:0in;
margin-bottom:0in;
margin-left:.5in;
margin-bottom:.0001pt;
line-height:115%;
}
--></style></head><body><div data-externalstyle="false" dir="ltr" style="font-family:Calibri,'Segoe UI',Meiryo,'Microsoft YaHei UI','Microsoft JhengHei UI','Malgun Gothic','Khmer UI','Nirmala UI',Tunga,'Lao UI',Ebrima,sans-serif;font-size:12pt;"><div>> So my question is. Anyone got a vtk window into a win8 metro <br>> application, i.e. windows 8 application?</div><div> </div><div> </div><div>I’m doubtful this can be done easily, if at all.</div><div> </div><div>Quoting from this blog: <a title="http://kennykerr.ca/2012/11/09/windows-8-whered-you-put-my-hwnd/" href="http://kennykerr.ca/2012/11/09/windows-8-whered-you-put-my-hwnd/" target="_parent">http://kennykerr.ca/2012/11/09/windows-8-whered-you-put-my-hwnd/</a></div><div> </div><div> </div><div>"So what can you do with this HWND? Well not very much. The reality is
that everything on Windows 8 is rendered with Direct3D. Even your aging
GDI app is ultimately composited together with other windows and
presented to the screen as if the whole desktop were one giant DirectX
application, and in some ways that’s what it is.
<p>So even though you can get the HWND for your app, you already have
access to the window’s Direct3D surface which is far more powerful than
anything you could do with the HWND on your own. So why does this
cloaked interface exist? Why to allow Direct3D to get your HWND of
course! Oh, and ICoreWindowInterop exists on Windows Phone 8 as well."</p></div><div> </div><div>Metro apps, especially if you are aiming to put one in the store, should be built on code that can be compiled for ARM as well as traditional x86/x64 desktop architectures. ActiViz is certainly not the proper route to get there. (ActiViz does not exist for ARM.)</div><div> </div><div>And cross-compiling VTK might be possible, but it still sounds like it will be difficult to show a vtkRenderWindow in the context of a metro app. Perhaps a DirectX-based VTK rendering module instead of an OpenGL one would make it less difficult... I’m not aware of any current DirectX+VTK efforts.</div><div> </div><div> </div><div>HTH,</div><div>David</div><div> </div></div></body></html>