[vtkusers] vtkMFCWindow and toolbar
Robert Golebiowski
rgolebiowski at future-processing.com
Tue May 26 11:21:57 EDT 2009
Hi All,
I’m writing an MFC application, which makes use of VTK and ITK. I managed to
compile vtkMDI project from VTKExamples. I tried to add a toolbar to
vtkMFCWindow and I run into some problems. In MFC toolbar should be added to
a window when OnCreate event occurs. Because vtkMFCWindow creates itself
(calls Create function) inside its constructor I couldn’t add OnCreate
method in my class which derives from vtkMFCWindows. I had to change
vtkMFCWindow class a bit. Now I can create a toolbar in OnCreate method (in
my class), but I still don’t see any toolbar in my window. I wonder if there
is an easier way of adding toolbars to vtkMfcWindow.
I will be grateful for any help,
Rob
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20090526/b06eb7f2/attachment.htm>
More information about the vtkusers
mailing list