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. Display number on the Push Button

Display number on the Push Button

Scheduled Pinned Locked Moved C / C++ / MFC
graphics
2 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.
  • S Offline
    S Offline
    S DARWIN PAUL RAJ
    wrote on last edited by
    #1

    Hai all, I want to display the number on the Push button. The button already loaded with bitmap. It starts with 0, whenever mouse click occurs on the client area, the counter starts counting and the next number we are going to used(clicked) on the client area should be display on the button. so far.... I tried by using DrawItem I don't know the proper way to handle the drawitem. Note: 1.Number to Display on the Button, that already loaded with Bitmap. 2. I tried to use Drawitem. With regards :( DARWIN PAUL RAJ

    G 1 Reply Last reply
    0
    • S S DARWIN PAUL RAJ

      Hai all, I want to display the number on the Push button. The button already loaded with bitmap. It starts with 0, whenever mouse click occurs on the client area, the counter starts counting and the next number we are going to used(clicked) on the client area should be display on the button. so far.... I tried by using DrawItem I don't know the proper way to handle the drawitem. Note: 1.Number to Display on the Button, that already loaded with Bitmap. 2. I tried to use Drawitem. With regards :( DARWIN PAUL RAJ

      G Offline
      G Offline
      GermanGeorge
      wrote on last edited by
      #2

      use CBitmapButtons CBitmapButton bezier; bezier.LoadBitmaps(_T("IMAGE27UP"), _T("IMAGE27DOWN"), _T("IMAGE27DOWN"), _T("IMAGE27GREY")); bezier.SubclassDlgItem(IDC_BUTTON_BEZIER, this); bezier.SizeToContent(); then, if you want to change the image just use bezier.LoadBitmaps(_T("IMAGE29UP"), _T("IMAGE29DOWN"));

      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