Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. image boxes

image boxes

Scheduled Pinned Locked Moved C / C++ / MFC
question
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • H Offline
    H Offline
    halblonious
    wrote on last edited by
    #1

    What's the best method for having resizable boxes that can display images imported by a user? halblonious

    M P 2 Replies Last reply
    0
    • H halblonious

      What's the best method for having resizable boxes that can display images imported by a user? halblonious

      M Offline
      M Offline
      Maximilien
      wrote on last edited by
      #2

      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 )

      1 Reply Last reply
      0
      • H halblonious

        What's the best method for having resizable boxes that can display images imported by a user? halblonious

        P Offline
        P Offline
        Peter Molnar
        wrote on last edited by
        #3

        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

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups