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

Popular posts from this blog

javascript - three.js lot of meshes optimization -

smartface.io - Proper way to change color scheme for whole application -

Email notification in google apps script -