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. Loading an Icon to a Button from a local directory in runtime

Loading an Icon to a Button from a local directory in runtime

Scheduled Pinned Locked Moved C / C++ / MFC
helpc++
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
    harinat
    wrote on last edited by
    #1

    Hello Guys.. This is hari..i need some help regarding VC++...the problem iam not able to load an icon to a button in App Runtime..ie. iam selecting an icon in the App and it is loaded on the Button...guys help me to come out of it Thanks in Advance.. Hariharan.S.N

    P K 2 Replies Last reply
    0
    • H harinat

      Hello Guys.. This is hari..i need some help regarding VC++...the problem iam not able to load an icon to a button in App Runtime..ie. iam selecting an icon in the App and it is loaded on the Button...guys help me to come out of it Thanks in Advance.. Hariharan.S.N

      P Offline
      P Offline
      Prakash Nadar
      wrote on last edited by
      #2

      use LoadImage and set the fuload to LR_LOADFROMFILE The World is getting smaller and so are the people.

      1 Reply Last reply
      0
      • H harinat

        Hello Guys.. This is hari..i need some help regarding VC++...the problem iam not able to load an icon to a button in App Runtime..ie. iam selecting an icon in the App and it is loaded on the Button...guys help me to come out of it Thanks in Advance.. Hariharan.S.N

        K Offline
        K Offline
        Kene
        wrote on last edited by
        #3

        I think ur problem is loading icons (or images) at runtime, from files. MFC 7.0 solves this problem with CImage class, check the docs for details. U can also search this site. There are button classes here that u can use instead. What would life be without programmers and salesmen?

        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