#Scroller-mod. view size?
I want to enhance an app based on the CScrollView class. What I want is to add
zoom in, zoom out capabilities.
With my basic understanding of the CScrollView class, it supports a changing
Doc size, but a fixed View size (relative to the actual window size).
Is there any way to make the view size "virtual" also? i.e., the window may be
50×50 pixels, but it displays a 100×100 region of the document. Obviously
scaling of the drawing would be nescesary, possible during the DPtoLP and
LPtoDP routines.
Any ideas/suggestions?? I've done this before in an all Windows SDK app, but
am wondering of an automatic and cool MFC method! I would like to think that
this was thought of when the CScrollView class was born.
Thanks in advance,
BP