-
StatusBar
Hi:
There is a DialogBox with some controls on it. if I move the mouse on one of the controls, status bar shows the corresponding text. But how can I get the control ID when I move the mouse on the control?
BOOL DlgProc(....)
Code:
case WM_MOUSEMOVE:
{
switch(CtrlID)
SendMessage(hwndStatusBar,...,...,...);
}
break;
Thanks.
-
I doubt you even receive a WM_MOUSEMOVE if the mouse is over a child window.
You could subclass all of your controls...
-
yes, it seems ok with WM_MOUSEMOVE, but now I have no idea that how to receive the control handle or ID when move the mouse on it :(
-
So you actually get the WM_MOUSEMOVE?
You could use GetWindowFromPoint and pass the mouse coordinates.
-
thanks, but I don't know if that is precious, is there any other way to do this?