[vtkusers] vtk application on Document/View (MDI) pattern.
Luis Alberto Pereira
l.a.pereira at uol.com.br
Wed Oct 27 10:32:03 EDT 2004
Dears,
Im using VC++ 2003 to construct my vtk application on Document/View (MDI)
pattern.
Im using in Create event in CView class follow code:
BOOL C3DView::Create(LPCTSTR lpszClassName, LPCTSTR lpszWindowName, DWORD
dwStyle, const RECT& rect, CWnd* pParentWnd, UINT nID, CCreateContext*
pContext)
{
// TODO: Add your specialized code here and/or call the base class
this->renWin->AddRenderer(this->ren);
this->renWin->SetParentId(this->m_hWnd);
this->iren->SetRenderWindow(this->renWin);
return CView::Create(lpszClassName, lpszWindowName, dwStyle, rect,
pParentWnd, nID, pContext);
}
And vtk render window is being created out of CchildFrame client area. It is
creating a separeted/duplicated render window of Cview in CchildFrame.
Can someone help me solve this problem ?
Thanks
Luis Alberto
55 11 8184 8444
55 11 3744 9965
l.a.pereira at uol.com.br
lapereira_br at hotmail.com
lalberto at stefanini.com.br <mailto:lalberto at steftanini.com.br>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20041027/d6433758/attachment.htm>
More information about the vtkusers
mailing list