[vtkusers] questions on render window #2
John Drescher
drescherjm at gmail.com
Tue Aug 4 11:26:06 EDT 2009
2009/8/4 Konstantinos Iatridis <kiatri at itech-soft.com.fr>:
> Hello,
>
> in a previous post I have asked about a way to handle windows events of a
> render window independent of vtk and I would like to offer some additional
> information. My vtk render window is created on top of a normal system
> window provided by a .net application. The render window is associated
> with an interactor class derived from vtkWin32RenderWindowInteractor in
> which I have overidden methods like OnLButtonDown, etc. For example, my
> OnLButtonDown method does only the following:
>
> void MyInteractor::OnLButtonDown (HWND wnd, UINT nFlags, int X, int Y)
> {
> HWND hparent = (HWND)this->GetRenderWindow()->GetGenericParentId();
> ::SendMessage(hparent, WM_LBUTTONDOWN, 0, MAKELPARAM(X, Y));
> }
>
How about:
HWND hParent = ::GetParent(wnd);
Or is wnd not the window handle of the render window?
John
More information about the vtkusers
mailing list