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