Поделиться через


COleControl::GetCapture

Determines whether the COleControl object has the mouse capture.

CWnd* GetCapture( );

Возвращаемое значение

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

Заметки

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

Требования

Header: afxctl.h

См. также

Основные понятия

COleControl Class

COleControl Members

Hierarchy Chart

COleControl::SetCapture

COleControl::ReleaseCapture