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. How to load an image on any control using win32 C++

How to load an image on any control using win32 C++

Scheduled Pinned Locked Moved C / C++ / MFC
c++comtutorial
8 Posts 4 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.
  • K Offline
    K Offline
    Khatri Mitesh
    wrote on last edited by
    #1

    Hi to all I want to load multiple images at particular locations on a control using win 32 C++ and move that images without redraw the control or image. Thanks

    ~Khatri Mitesh khatrimitesh@hotmail.com Bikaner (Rajasthan) INDIA

    H I 2 Replies Last reply
    0
    • K Khatri Mitesh

      Hi to all I want to load multiple images at particular locations on a control using win 32 C++ and move that images without redraw the control or image. Thanks

      ~Khatri Mitesh khatrimitesh@hotmail.com Bikaner (Rajasthan) INDIA

      H Offline
      H Offline
      Hamid Taebi
      wrote on last edited by
      #2

      What control? your question is general not specific buttons? static control? you need to tree control listview listbox?

      L K 2 Replies Last reply
      0
      • H Hamid Taebi

        What control? your question is general not specific buttons? static control? you need to tree control listview listbox?

        L Offline
        L Offline
        led mike
        wrote on last edited by
        #3

        Hamid. wrote:

        What control? your question is general not specific buttons? static control? you need to tree control listview listbox?

        I think he needs a mind control. :-D

        led mike

        1 Reply Last reply
        0
        • H Hamid Taebi

          What control? your question is general not specific buttons? static control? you need to tree control listview listbox?

          K Offline
          K Offline
          Khatri Mitesh
          wrote on last edited by
          #4

          Hi In any control (Like Picture box control) i want to load the multiple images. and move the images. Thanks

          ~Khatri Mitesh khatrimitesh@hotmail.com Bikaner (Rajasthan) INDIA

          H 1 Reply Last reply
          0
          • K Khatri Mitesh

            Hi In any control (Like Picture box control) i want to load the multiple images. and move the images. Thanks

            ~Khatri Mitesh khatrimitesh@hotmail.com Bikaner (Rajasthan) INDIA

            H Offline
            H Offline
            Hamid Taebi
            wrote on last edited by
            #5

            Each control has a method, for example buttons: you can use of SetBitmap but if you want to use of different states for a button up/down/foucs,.. you can use of CBitmapButton(however you can use of an image list for it) but generaly you can make a image list and then use of it for Comboboxs/buttons/treectrls/catctrls/ctoolbars,... you can make a CImageList and then use of Add for insert image or images to list and then use of them.

            1 Reply Last reply
            0
            • K Khatri Mitesh

              Hi to all I want to load multiple images at particular locations on a control using win 32 C++ and move that images without redraw the control or image. Thanks

              ~Khatri Mitesh khatrimitesh@hotmail.com Bikaner (Rajasthan) INDIA

              I Offline
              I Offline
              Iain Clarke Warrior Programmer
              wrote on last edited by
              #6

              Your question does not make much sense to me. "I want to move an image, which means drawing it in a different place, without redrawing". Are these controls under your own, erm, control? If this is things on other people's software, than maybe you want your own non-rectangular window? Not easy, but far from impossible. What is the end result of what you are trying to do? Iain.

              K 1 Reply Last reply
              0
              • I Iain Clarke Warrior Programmer

                Your question does not make much sense to me. "I want to move an image, which means drawing it in a different place, without redrawing". Are these controls under your own, erm, control? If this is things on other people's software, than maybe you want your own non-rectangular window? Not easy, but far from impossible. What is the end result of what you are trying to do? Iain.

                K Offline
                K Offline
                Khatri Mitesh
                wrote on last edited by
                #7

                Hi I want to load multiple images on any control and move images according to mouse movement. actually i want to create a application like Google map. so load images and move according to mouse. Thanks

                ~Khatri Mitesh khatrimitesh@hotmail.com Bikaner (Rajasthan) INDIA

                I 1 Reply Last reply
                0
                • K Khatri Mitesh

                  Hi I want to load multiple images on any control and move images according to mouse movement. actually i want to create a application like Google map. so load images and move according to mouse. Thanks

                  ~Khatri Mitesh khatrimitesh@hotmail.com Bikaner (Rajasthan) INDIA

                  I Offline
                  I Offline
                  Iain Clarke Warrior Programmer
                  wrote on last edited by
                  #8

                  On any control? Tough. On a control, you write? Sortof easy. Just have to write a control that displays a background, with extra images on top. Then handle mouse messages, and move the extra images about. None of that is high tech programming, just book-keeping and tedious -not-doing-something-dumb. Iain.

                  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