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. Drawing button

Drawing button

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

    Is it possible to let a user draw his own button at runtime? I mean to say,that the button size be varied with its position also at runtime. Actually,my project work needs to make a toolbar analogous to "Micrsoft Paint"'s toolbar in which there will be button tool which a user can use to make a button in his workplace.It will be more suitable if the button is circular rather than rectangular as seen normally in VC++ .

    R 1 Reply Last reply
    0
    • J joy007

      Is it possible to let a user draw his own button at runtime? I mean to say,that the button size be varied with its position also at runtime. Actually,my project work needs to make a toolbar analogous to "Micrsoft Paint"'s toolbar in which there will be button tool which a user can use to make a button in his workplace.It will be more suitable if the button is circular rather than rectangular as seen normally in VC++ .

      R Offline
      R Offline
      rocky_pulley
      wrote on last edited by
      #2

      Yes, it is possible. If you want to draw your own type of button that's circular that's possible too. Don't expect code here though, that's pretty much beyond the scope of a forum thread, just read up on owner draw buttons for the circular button question. For resizing the button, you will need to just code some way for the user to resize it, put it in some custom view or something and handle the mouse events, you can call MoveWindow() to resize the button. -- Rocky Dean Pulley

      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