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. Changing the look and feel of button

Changing the look and feel of button

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

    Hello, I have a button, I want to change the look of the button when the mouse is over and when the button is pressed and released. The look and feel should be similar i.e exact replica when a menu item button is clicked. I know that I have to do this in OnDrawItem. But without using bitmaps for changing the look and feel of button, I want to use some drawing operations. Can anyone please help me to do this? Thnaks Madhavi

    S P 2 Replies Last reply
    0
    • L ledallam

      Hello, I have a button, I want to change the look of the button when the mouse is over and when the button is pressed and released. The look and feel should be similar i.e exact replica when a menu item button is clicked. I know that I have to do this in OnDrawItem. But without using bitmaps for changing the look and feel of button, I want to use some drawing operations. Can anyone please help me to do this? Thnaks Madhavi

      S Offline
      S Offline
      Sujan Christo
      wrote on last edited by
      #2

      Hi, Have a look @ this article http://www.codetools.com/buttonctrl/cbuttonst.asp Sujan

      1 Reply Last reply
      0
      • L ledallam

        Hello, I have a button, I want to change the look of the button when the mouse is over and when the button is pressed and released. The look and feel should be similar i.e exact replica when a menu item button is clicked. I know that I have to do this in OnDrawItem. But without using bitmaps for changing the look and feel of button, I want to use some drawing operations. Can anyone please help me to do this? Thnaks Madhavi

        P Offline
        P Offline
        pubududilena
        wrote on last edited by
        #3

        hi I think you can do it using Hoover Button.. please read this: http://www.codeproject.com/buttonctrl/hoverbutton.asp[^]

        L 1 Reply Last reply
        0
        • P pubududilena

          hi I think you can do it using Hoover Button.. please read this: http://www.codeproject.com/buttonctrl/hoverbutton.asp[^]

          L Offline
          L Offline
          ledallam
          wrote on last edited by
          #4

          Hi, I want to do the same, but without loading the bitmap on button. My buuton should only contain text. I hope u got my point. Please give me some suggestions... thnaks madhavi

          R 1 Reply Last reply
          0
          • L ledallam

            Hi, I want to do the same, but without loading the bitmap on button. My buuton should only contain text. I hope u got my point. Please give me some suggestions... thnaks madhavi

            R Offline
            R Offline
            rabih_kai
            wrote on last edited by
            #5

            OnMouseHover event will simply solve what u r looking for either with Image or test, just drop some code there and u will see the difference

            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