<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'>
Hi, I'm&nbsp;experimenting with&nbsp;vtkChartXY.&nbsp; I tried to set the window size from outside vtk by calling MoveWindow API function on the HWND.&nbsp; But the HWND returned from GetWindowId, see the code below,&nbsp;is null.&nbsp; Is this a bug?<BR>
&nbsp;<BR><FONT size=2 face=Consolas><FONT size=2 face=Consolas>
vtkSmartPointer&lt;vtkContextView&gt; view = <BR>
vtkSmartPointer&lt;vtkContextView&gt;::New();<BR>
view-&gt;GetRenderer()-&gt;SetBackground(1.0, 1.0, 1.0);<BR>
vtkWin32OpenGLRenderWindow* win = vtkWin32OpenGLRenderWindow::SafeDownCast(view-&gt;GetRenderWindow());<BR>
HWND hwnd = win-&gt;GetWindowId();<BR>
</FONT></FONT><BR>Thanks!<BR>Xiaofeng Z<BR><BR><BR>                                               </body>
</html>