CODPortComponent::HitTest

BOOL CODPortComponent::HitTest(const CPoint& ptTest, const int nSlop)

Tests to see if port was hit at mouse location.

Defined in: OdPortComp.cpp

Return Value

Non-zero if the port was hit; otherwise zero.

Parameters

ptTest

Point to hit-test.

nSlop

Additional horizontal/vertical space to allow for hit test (both left/ right and top/bottom of hit test rectangle are inflated by this value).