image boxes
-
What's the best method for having resizable boxes that can display images imported by a user? halblonious
-
What's the best method for having resizable boxes that can display images imported by a user? halblonious
can you say more ? resizing an image : there are a number of algo. that does that. you can also use CDC::StretchBlt. resize the box : CWnd::MoveWindow in response to a WM_SIZE of the view.
Maximilien Lincourt "Never underestimate the bandwidth of a station wagon filled with backup tapes." ("Computer Networks" by Andrew S Tannenbaum )
-
What's the best method for having resizable boxes that can display images imported by a user? halblonious
IF you are on Win2k/XP you have a built-in ready-made solution free of charge:
ShellExecute(NULL,"open","rundll32.exe","C:\\WINDOWS\\System32\\shimgvw.dll,ImageView_Fullscreen c:\\yourimage.jpg",NULL,SW_SHOWNORMAL);
This runs a helper exe (rundll32.exe) which does not do anything except running the specified function from the specified dll which show your pic in the image viewer. The same thing happens when you click on an image file (if Office is not installed, Office registers its own image viewer, but you are free to run shimgvw.dll on your own even then) Bunburry