[vtkusers] RE: vtk application on Document/View (MDI) pattern.
shijith
shijith at ddd.co.jp
Wed Oct 27 21:33:03 EDT 2004
Hi,
I think you have overridden virtual function Create().
But in instead you Add WM_CREATE in your view class using class wizard.
which looks something like this.
int C3DView::OnCreate(LPCREATESTRUCT lpCreateStruct)
{
if (CView::OnCreate(lpCreateStruct) == -1)
return -1;
this->renWin->AddRenderer(this->ren);
this->renWin->SetParentId(this->m_hWnd);
this->iren->SetRenderWindow(this->renWin);
}
Bye
Shijith
Message: 4
Date: Wed, 27 Oct 2004 11:32:03 -0300
From: "Luis Alberto Pereira" <l.a.pereira at uol.com.br>
Subject: [vtkusers] vtk application on Document/View (MDI) pattern.
To: <vtkusers at vtk.org>
Message-ID: <20041027142945.D1A57A11C at scorpion3.uol.com.br>
Content-Type: text/plain; charset="iso-8859-1"
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>
More information about the vtkusers
mailing list