visual c++ - How to zoom in/out an image on clicking zoom in/out button in SDI? -
i new vc++. how zoom in/out image on clicking zoom in/out button in sdi.
you might want derive document view class cscrollview
instead of default cview
created wizard. use setscrollsizes()
member function set zoom level. use setscaletofit()
define 100% zoom. in ondraw()
use cdc::stretchblt()
draw image size have set via setscrollsizes()
.
Comments
Post a Comment