Compartilhar via


COleControl::GetCapture

Determines whether the COleControl object has the mouse capture.

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

An activated windowless control receives the mouse capture when SetCapture is called.

Requirements

Header: afxctl.h

See Also

Reference

COleControl Class

Hierarchy Chart

COleControl::SetCapture

COleControl::ReleaseCapture

Other Resources

COleControl Members