CODPortComponent::HitTest

BOOLCODPortComponent::HitTest(const CPoint&ptTest, const intnSlop)

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).