I have a win32 program.
I want to change status text when mouse come over particular control
in WM_MOUSEMOVE:
wsprintf((LPWSTR)szBuf, TEXT("Mouse position: %d, %d"), LOWORD(lParam), HIWORD(lParam));
SendMessage(hWndStatus, SB_SETTEXT, 0, (LPARAM)(LPSTR)szBuf);
but it only gives me mouse position.
Strong suggestion: use something higher-level than Win32, if at all possible. MFC, VB … anything.
To answer your question, however, you should be able to use a combination of TrackMouseEvent () and WM_HOVER:
http://www.codeguru.com/forum/showthread.php?t=290195