COleControl::GetCapture

CWnd* GetCapture( );

Return Value

If the control is activated and windowless, returns this if the control currently has the mouse capture (as determined by the control’s container), or NULL if it does not have the capture.

Otherwise, returns the CWnd object that has the mouse capture (same as CWnd::GetCapture).

Remarks

Call this function to determine whether the COleControl object has the mouse capture. An activated windowless control receives the mouse capture when SetCapture is called.

COleControl OverviewClass MembersHierarchy Chart

See Also   COleControl::SetCapture, COleControl::ReleaseCapture