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. WM_MOUSEHOVER

WM_MOUSEHOVER

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

    hi.. how to use WM_MOUSEHOVER,I have not seen more example about this message. I am using Win32api,not mfc. I want to get button's text when mouse cursor on button.not push or select. please help!!!

    V 1 Reply Last reply
    0
    • Z zeki yugnak

      hi.. how to use WM_MOUSEHOVER,I have not seen more example about this message. I am using Win32api,not mfc. I want to get button's text when mouse cursor on button.not push or select. please help!!!

      V Offline
      V Offline
      vikramlinux
      wrote on last edited by
      #2

      I think you can make WM_MOUSEMOVE Work. and jast say GetWindowFromPoint().check for the class name of button..and then GetwindowText..what do you say?

      V 1 Reply Last reply
      0
      • V vikramlinux

        I think you can make WM_MOUSEMOVE Work. and jast say GetWindowFromPoint().check for the class name of button..and then GetwindowText..what do you say?

        V Offline
        V Offline
        vikramlinux
        wrote on last edited by
        #3

        Sorry WindowFromPoint and not the GetWindowFromPoint

        Z 1 Reply Last reply
        0
        • V vikramlinux

          Sorry WindowFromPoint and not the GetWindowFromPoint

          Z Offline
          Z Offline
          zeki yugnak
          wrote on last edited by
          #4

          hi vikrams... thanks for your reply..:) I have a new problem.this program is working when cursor on window but not working for button or any controls.:confused: have you got any suggestion?

          V 1 Reply Last reply
          0
          • Z zeki yugnak

            hi vikrams... thanks for your reply..:) I have a new problem.this program is working when cursor on window but not working for button or any controls.:confused: have you got any suggestion?

            V Offline
            V Offline
            vikramlinux
            wrote on last edited by
            #5

            Can you paste the Code snippet here,that you are using ?

            Z 1 Reply Last reply
            0
            • V vikramlinux

              Can you paste the Code snippet here,that you are using ?

              Z Offline
              Z Offline
              zeki yugnak
              wrote on last edited by
              #6

              Hi... My code is follow: case WM_MOUSEMOVE: GetCursorPos(&pt); hControl=WindowFromPoint(pt); GetWindowText(hControl,str,30); if(hControl==GetDlgItem(hWnd,IDOK)) MessageBox(hWnd,str," ",0); else if(hControl==hWnd) MessageBox(hWnd,str,"",0); return TRUE;

              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