CDC::SetWindowOrg() CDC::SetViewport() CDC::SetWindowExt() CDC::SetViewport() 1.Set the Viewport to the client area of the view and forget it; 2.Set origin of Window to start of where in the Logical World you want to view; 3.Set Window Extent to the size of the area in the Logical World you want to view; 4.To zoom in on your figure, just decrease the extent of the Window. 5.To pan out from the figure, just increase the extent of the Window 6.To scroll your figure, just change the origin of the Window
CDC::SetViewport()
CDC::SetWindowExt()
CDC::SetViewport()
1.Set the Viewport to the client area of the view and forget it;
2.Set origin of Window to start of where in the Logical World you want to view;
3.Set Window Extent to the size of the area in the Logical World you want to view;
4.To zoom in on your figure, just decrease the extent of the Window.
5.To pan out from the figure, just increase the extent of the Window
6.To scroll your figure, just change the origin of the Window