[vtkusers] Render widnow of vtkContextView object does not have WindowId()

Xiaofeng Z xf10036 at hotmail.com
Fri Nov 19 12:18:44 EST 2010


Hi, I'm experimenting with vtkChartXY.  I tried to set the window size from outside vtk by calling MoveWindow API function on the HWND.  But the HWND returned from GetWindowId, see the code below, is null.  Is this a bug?
 
vtkSmartPointer<vtkContextView> view = 
vtkSmartPointer<vtkContextView>::New();
view->GetRenderer()->SetBackground(1.0, 1.0, 1.0);
vtkWin32OpenGLRenderWindow* win = vtkWin32OpenGLRenderWindow::SafeDownCast(view->GetRenderWindow());
HWND hwnd = win->GetWindowId();

Thanks!
Xiaofeng Z

 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20101119/1a5b2770/attachment.htm>


More information about the vtkusers mailing list