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. bitmap in button

bitmap in button

Scheduled Pinned Locked Moved C / C++ / MFC
graphicsquestion
4 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.
  • Z Offline
    Z Offline
    zizzzz
    wrote on last edited by
    #1

    Good morning how can I add a bitmap into a button

    P V H 3 Replies Last reply
    0
    • Z zizzzz

      Good morning how can I add a bitmap into a button

      P Offline
      P Offline
      Programm3r
      wrote on last edited by
      #2

      Hi, Hope this might help.

      http://www.flounder.com/bitmapbutton.htm[^]

      http://www.codeguru.com/cpp/controls/buttonctrl/bitmapbuttons/article.php/c5163/[^]

      The only programmers that are better than C programmers are those who code in 1's and 0's..... :) :) Programm3r

      1 Reply Last reply
      0
      • Z zizzzz

        Good morning how can I add a bitmap into a button

        V Offline
        V Offline
        Veeresh Hiremath
        wrote on last edited by
        #3

        first go to button properties and change the properties at the styles tab to icon. Then create a CButton variable for the IDC_BUTTON name and then just use seticon()

        1 Reply Last reply
        0
        • Z zizzzz

          Good morning how can I add a bitmap into a button

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

          See CButton::SetBitmap on MSDN it has an example.


          WhiteSky


          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