WM_MOUSEHOVER
-
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!!!
-
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!!!
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?
-
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?
Sorry WindowFromPoint and not the GetWindowFromPoint
-
Sorry WindowFromPoint and not the GetWindowFromPoint
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?
-
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?
Can you paste the Code snippet here,that you are using ?
-
Can you paste the Code snippet here,that you are using ?
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;