[vtkusers] Improving interaction with a vtkMFCWindow

de Boer Ingo I.deBoer at polytec.de
Thu Mar 9 10:31:37 EST 2006


Hi,

> To enable a context menu I created a subclass of the 
> vtkInteractorStyle which then sent the WM_CONTEXTMENU command 
Why not creating a context menu via the view class ?

> interactions. For instance I would like to modify my document 
> class when certain keys are pressed, and it seems somewhat 
Why not use the OnKey/OnChar from the view class ?

> that respond to messages, because the vtkMFCWindow generally 
> has the focus. These functions then call the appropriate 
The focus depends on your programm. Eg, a mouse click sets
a focus to a window.

> So what would be the best way to get the vtkMFCWindow to 
> share the messages?? Subclass the vtkMFCWindow and remove 
The messages are also send to the view, so they share them already


greets
  Ingo

---
Dr.-Ing. Ingo H. de Boer

Polytec GmbH
Polytec-Platz 1-7, 76337 Waldbronn, Germany
phone: ++49 7243 604 106
fax  : ++49 7243 604 255



More information about the vtkusers mailing list