Change move direction for zooming

Zoom in and out is done by right mouse and moving left and right. How could I change this to up and down movement?

Thanx your all help.
Drain

Andras's picture

Try this in OCC_3dView::OnMouseMove(UINT nFlags, CPoint point)
...
switch (myCurrentMode)
{
case CurAction3d_DynamicZooming :
myView->Zoom(point.y, 0, myYmax, 0);
// save the current mouse coordinate in min \n";
myXmax = point.x;
myYmax = point.y;
break;

Andras

Drain's picture

That´s what I´m looking for. And it works. Fine.

Thanks a lot.

Drain