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. How do we can given the highlighted effect to the toolbar button when it is pressed

How do we can given the highlighted effect to the toolbar button when it is pressed

Scheduled Pinned Locked Moved C / C++ / MFC
help
6 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.
  • A Offline
    A Offline
    Anamika2005
    wrote on last edited by
    #1

    hii , Can somebody help me .. For the buttons on the toolbar how can we give the effect as highlighted when pressed or when the mouse is move on it . Thanks Shikha "If there is a will there is a way"

    A C 2 Replies Last reply
    0
    • A Anamika2005

      hii , Can somebody help me .. For the buttons on the toolbar how can we give the effect as highlighted when pressed or when the mouse is move on it . Thanks Shikha "If there is a will there is a way"

      A Offline
      A Offline
      Abhijeet Rajput
      wrote on last edited by
      #2

      You can use SetState() method of CButton Class and set the parameter as TRUE to highlight the button Abhijeet

      A A 2 Replies Last reply
      0
      • A Abhijeet Rajput

        You can use SetState() method of CButton Class and set the parameter as TRUE to highlight the button Abhijeet

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

        Hi Abhijeet r u from AEC Chikhli. Regards Atul Mahajan Atul Mahajan

        A 1 Reply Last reply
        0
        • A Atul23

          Hi Abhijeet r u from AEC Chikhli. Regards Atul Mahajan Atul Mahajan

          A Offline
          A Offline
          Abhijeet Rajput
          wrote on last edited by
          #4

          No, I am from Amravati. & graduated from Shegaon engineering College. Abhijeet

          1 Reply Last reply
          0
          • A Abhijeet Rajput

            You can use SetState() method of CButton Class and set the parameter as TRUE to highlight the button Abhijeet

            A Offline
            A Offline
            Anamika2005
            wrote on last edited by
            #5

            Thanks Abhijeet, But for the toolbar buttons ,setstate() is not suitable. Regards Shikha "If there is a will there is a way "

            1 Reply Last reply
            0
            • A Anamika2005

              hii , Can somebody help me .. For the buttons on the toolbar how can we give the effect as highlighted when pressed or when the mouse is move on it . Thanks Shikha "If there is a will there is a way"

              C Offline
              C Offline
              Cristian Amarie
              wrote on last edited by
              #6

              1. Use TB_HOTIMAGELIST message to set the "hot" image list of toolbar 2. Subclass the toolbar and implement the WM_MOUSExxx, WM_NCMOUSExxx etc. messages to detect toolbar buttons activation, mouse hovering etc. and you can do whatever you like to do. For example you can use DrawEdge to draw a button margins when hovered.

              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