Expand Minimize
This topic has not yet been rated - Rate this topic

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.

See Also

COleControl Overview | Class Members | Hierarchy Chart | COleControl::SetCapture | COleControl::ReleaseCapture

Did you find this helpful?
(1500 characters remaining)
© 2013 Microsoft. All rights reserved.