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. CBitmapButton

CBitmapButton

Scheduled Pinned Locked Moved C / C++ / MFC
graphics
4 Posts 2 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.
  • A Offline
    A Offline
    akshita_15
    wrote on last edited by
    #1

    hi, How can we use AutoLoad() to load a bitmap for the button Thank you

    _ 1 Reply Last reply
    0
    • A akshita_15

      hi, How can we use AutoLoad() to load a bitmap for the button Thank you

      _ Offline
      _ Offline
      _AnsHUMAN_
      wrote on last edited by
      #2

      From The Docs: // Initialize the owner-drawn button with the id IDC_MYBUTTON as a bitmap // button. This code is used in the OnInitDialog handler of my dialog. //The button property should be set as BS_OWNERDRAW myButton.AutoLoad(IDC_MYBUTTON, this); Somethings seem HARD to do, until we know how to do them. ;-) _AnShUmAn_ -- modified at 5:48 Saturday 3rd June, 2006

      A 1 Reply Last reply
      0
      • _ _AnsHUMAN_

        From The Docs: // Initialize the owner-drawn button with the id IDC_MYBUTTON as a bitmap // button. This code is used in the OnInitDialog handler of my dialog. //The button property should be set as BS_OWNERDRAW myButton.AutoLoad(IDC_MYBUTTON, this); Somethings seem HARD to do, until we know how to do them. ;-) _AnShUmAn_ -- modified at 5:48 Saturday 3rd June, 2006

        A Offline
        A Offline
        akshita_15
        wrote on last edited by
        #3

        Hi, Thanks for your reply. I have taken a button and set the ownerdraw property and mapped it as myButton and used in InitDialog() I wrote : myButton.AutoLoad(IDC_MYBUTTON, this); But I am getting an exception in this line Please tell me how to solve it. And can you tell me a bit more abt AutoLoad() bcoz I didnt understand how the bitmaap is loaded without mentioning the resource id in it. Thank you.:)

        _ 1 Reply Last reply
        0
        • A akshita_15

          Hi, Thanks for your reply. I have taken a button and set the ownerdraw property and mapped it as myButton and used in InitDialog() I wrote : myButton.AutoLoad(IDC_MYBUTTON, this); But I am getting an exception in this line Please tell me how to solve it. And can you tell me a bit more abt AutoLoad() bcoz I didnt understand how the bitmaap is loaded without mentioning the resource id in it. Thank you.:)

          _ Offline
          _ Offline
          _AnsHUMAN_
          wrote on last edited by
          #4

          http://support.microsoft.com/kb/q134421/ have a look at the above link. Somethings seem HARD to do, until we know how to do them. ;-) _AnShUmAn_

          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