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. Is it possible to make a BitmapButton from a user defined region?

Is it possible to make a BitmapButton from a user defined region?

Scheduled Pinned Locked Moved C / C++ / MFC
graphicshelpquestion
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.
  • E Offline
    E Offline
    eric kaminski
    wrote on last edited by
    #1

    Hey guys, Once again I need your help. I am desiging this funky gui control that requires me to create this odd region for buttons. Basically take a square and superimpose a circle in the center offset from the borders of the suare by 5 pixels. Got a vague picture in your head? Ok now with that picture in your head, think of the space left at each of the 4 corners...there are my button regions that i created. Now my next hurdle is to overlay a bitmap over that region. Any ideas on how i could do it? It has to be possible. Thank you for any input :confused: "DWORD my man!"

    S 1 Reply Last reply
    0
    • E eric kaminski

      Hey guys, Once again I need your help. I am desiging this funky gui control that requires me to create this odd region for buttons. Basically take a square and superimpose a circle in the center offset from the borders of the suare by 5 pixels. Got a vague picture in your head? Ok now with that picture in your head, think of the space left at each of the 4 corners...there are my button regions that i created. Now my next hurdle is to overlay a bitmap over that region. Any ideas on how i could do it? It has to be possible. Thank you for any input :confused: "DWORD my man!"

      S Offline
      S Offline
      SriSubbu
      wrote on last edited by
      #2

      Use SelectClipRgn on the Device context of the Bitmap Button Control and BitBlt the Bitmap on to it. Subbi.

      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