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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. changing text color of static comtrol

changing text color of static comtrol

Scheduled Pinned Locked Moved C / C++ / MFC
help
9 Posts 5 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.
  • R Offline
    R Offline
    rajeev82
    wrote on last edited by
    #1

    hi friends, i want to change the text colour of a static text, when the mouse cursor stays over it.it'll be realy great if someone can help me out in this. thank you in advance rajeev

    L R H 3 Replies Last reply
    0
    • R rajeev82

      hi friends, i want to change the text colour of a static text, when the mouse cursor stays over it.it'll be realy great if someone can help me out in this. thank you in advance rajeev

      L Offline
      L Offline
      Laxman Auti
      wrote on last edited by
      #2

      rajeev82 wrote:

      i want to change the text colour of a static text, when the mouse cursor stays over it.it'll be realy great if someone can help me out in this.

      You can derive the class from CStatic and override the MouseOver and MouseLeave Messages. Knock out 't' from can't, You can if you think you can :cool:

      N R 2 Replies Last reply
      0
      • L Laxman Auti

        rajeev82 wrote:

        i want to change the text colour of a static text, when the mouse cursor stays over it.it'll be realy great if someone can help me out in this.

        You can derive the class from CStatic and override the MouseOver and MouseLeave Messages. Knock out 't' from can't, You can if you think you can :cool:

        N Offline
        N Offline
        Nibu babu thomas
        wrote on last edited by
        #3

        A_Laxman wrote:

        You can derive the class from CStatic and override the MouseOver and MouseLeave Messages

        Your should register first to get those messages... Refer TrackMouseEvent and TRACKMOUSEEVENT.


        Nibu thomas A Developer Programming tips[^]  My site[^]

        1 Reply Last reply
        0
        • L Laxman Auti

          rajeev82 wrote:

          i want to change the text colour of a static text, when the mouse cursor stays over it.it'll be realy great if someone can help me out in this.

          You can derive the class from CStatic and override the MouseOver and MouseLeave Messages. Knock out 't' from can't, You can if you think you can :cool:

          R Offline
          R Offline
          Russell
          wrote on last edited by
          #4

          A_Laxman wrote:

          MouseOver and MouseLeave Messages

          Please, could you be more clear on these messages:) Cheers, Russell -- modified at 5:52 Wednesday 24th May, 2006

          N L 2 Replies Last reply
          0
          • R rajeev82

            hi friends, i want to change the text colour of a static text, when the mouse cursor stays over it.it'll be realy great if someone can help me out in this. thank you in advance rajeev

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

            A great example: http://www.codeproject.com/miscctrl/hyperlink.asp[^] hope that helps Cheers, Russell

            1 Reply Last reply
            0
            • R Russell

              A_Laxman wrote:

              MouseOver and MouseLeave Messages

              Please, could you be more clear on these messages:) Cheers, Russell -- modified at 5:52 Wednesday 24th May, 2006

              N Offline
              N Offline
              Nibu babu thomas
              wrote on last edited by
              #6

              _Russell_ wrote:

              Please, could you be more clear on these messages

              Here is a small sample article[^]. There is not much explanation but still it's good.


              Nibu thomas A Developer Programming tips[^]  My site[^]

              R 1 Reply Last reply
              0
              • R Russell

                A_Laxman wrote:

                MouseOver and MouseLeave Messages

                Please, could you be more clear on these messages:) Cheers, Russell -- modified at 5:52 Wednesday 24th May, 2006

                L Offline
                L Offline
                Laxman Auti
                wrote on last edited by
                #7

                See here for how CStatic derived class works and sample for same.. Here[^] Knock out 't' from can't, You can if you think you can :cool:

                1 Reply Last reply
                0
                • N Nibu babu thomas

                  _Russell_ wrote:

                  Please, could you be more clear on these messages

                  Here is a small sample article[^]. There is not much explanation but still it's good.


                  Nibu thomas A Developer Programming tips[^]  My site[^]

                  R Offline
                  R Offline
                  Russell
                  wrote on last edited by
                  #8

                  I got it! Thank you;) Cheers, Russell

                  1 Reply Last reply
                  0
                  • R rajeev82

                    hi friends, i want to change the text colour of a static text, when the mouse cursor stays over it.it'll be realy great if someone can help me out in this. thank you in advance rajeev

                    H Offline
                    H Offline
                    Hamid Taebi
                    wrote on last edited by
                    #9

                    See Here[^]_**


                    **_

                    whitesky


                    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