[vtkusers] VTk and MFC application
Agris Klimkans
agris at phc.chalmers.se
Mon Oct 23 11:03:27 EDT 2000
Hi!
You can do something like this:
void CMyView::PrepareForPlot()
{
m_pRenderer= vtkRenderer::New();
m_pRenWin = vtkWin32OpenGLRenderWindow::New();
HWND hwnd = this->GetSafeHwnd();
m_pRenWin->AddRenderer(m_pRenderer);
// the next line probably does what you want
m_pRenWin->SetParentId(hwnd);
......
}
Good luck!
Agris
----- Original Message -----
From: "Vineet Gupta" <vineetseema at hotmail.com>
To: <vtkusers at public.kitware.com>
Sent: Monday, October 23, 2000 3:08 PM
Subject: [vtkusers] VTk and MFC application
> Hi Everyone:
>
> I am creating VTK application using MFC in Visual C++. I have created the
> application that generates the volume in VTK window using classes written in
> MFC application. I have a picture window in the MFC application that I want
> the vtk volume to be displayed in. Can someone tell me how get the VTK
> window to display on the Picture Window of the MFC Application.
>
> Thanks
> Vineet Gupta
> Rosses Medical
>
> _________________________________________________________________________
> Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
>
> Share information about yourself, create your own public profile at
> http://profiles.msn.com.
>
>
> _______________________________________________
> This is the private VTK discussion list.
> Please keep messages on-topic. Check the FAQ at: <http://public.kitware.com/cgi-bin/vtkfaq>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/vtkusers
----- Original Message -----
From: "Vineet Gupta" <vineetseema at hotmail.com>
To: <vtkusers at public.kitware.com>
Sent: Monday, October 23, 2000 3:08 PM
Subject: [vtkusers] VTk and MFC application
> Hi Everyone:
>
> I am creating VTK application using MFC in Visual C++. I have created the
> application that generates the volume in VTK window using classes written in
> MFC application. I have a picture window in the MFC application that I want
> the vtk volume to be displayed in. Can someone tell me how get the VTK
> window to display on the Picture Window of the MFC Application.
>
> Thanks
> Vineet Gupta
> Rosses Medical
>
> _________________________________________________________________________
> Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
>
> Share information about yourself, create your own public profile at
> http://profiles.msn.com.
>
>
> _______________________________________________
> This is the private VTK discussion list.
> Please keep messages on-topic. Check the FAQ at: <http://public.kitware.com/cgi-bin/vtkfaq>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/vtkusers
More information about the vtkusers
mailing list