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

c++ - Difference between pre and post decrement in recursive function argument -

php - Nothing but 'run(); ' when browsing to my local project, how do I fix this? -

php - How can I echo out this array? -