Re: mouse over a pushbutton
Hi,
You could do something like this:
CRect rectButton;
POINT ptCursorPos;
GetDlgItem(IDC_YOURBUTTON)->GetWindowRect(rectButton);
GetCursorPos(&ptCursorPos);
if (rectButton.PtInRect(ptCursorPos))
{
// Do Something
}
Daniel.
Re: mouse over a pushbutton
Do the check from within the MouseMove handler (which passes you the current mouse position), by getting the window rect of the button as Daniel suggests.
Dave
Re: mouse over a pushbutton
i m sure i downloaded some project from CODEGURU a week ago that was doing what you wanted...serach i the articles published and there is a downloadable one that does what you want..........
Re: mouse over a pushbutton
Subclass the pushbuttons and in its OnMouseMove go and do your stuff.....
Sally