Determine is a point is within a window.
bool PtInWindow( HWND hwnd, const POINT &pt )
Return true if the point passed is within the area of the window passed.
GetCursorPos( pt );
if( PtInWindow( hwnd, pt ) )
// The mouse is in our window!
See also none