共用方式為


COleControl::SetCapture

Causes the control's container window to take possession of the mouse capture on the control's behalf.

CWnd* SetCapture( );

Return Value

A pointer to the CWnd window object that previously received mouse input.

Remarks

If the control is activated and windowless, this function causes the control's container window to take possession of the mouse capture, on the control's behalf. Otherwise, this function causes the control itself to take possession of the mouse capture (same as CWnd::SetCapture).

Requirements

Header: afxctl.h

See Also

Reference

COleControl Class

Hierarchy Chart

COleControl::GetCapture

COleControl::ReleaseCapture

Other Resources

COleControl Members