ITextHost::TxSetCapture method (textserv.h)

Sets the mouse capture in the text host's window.

Syntax

void TxSetCapture(
  [in] BOOL fCapture
);

Parameters

[in] fCapture

Type: BOOL

Indicates whether to set or release the mouse capture. If TRUE, the mouse capture is set. If FALSE, the mouse capture is released.

Return value

None

Remarks

This method is only valid when the control is in-place active; calls while the control is inactive may do nothing.

Requirements

Requirement Value
Minimum supported client Windows Vista [desktop apps only]
Minimum supported server Windows Server 2003 [desktop apps only]
Target Platform Windows
Header textserv.h
DLL Msftedit.dll

See also

ITextHost

Windowless Rich Edit Controls Overview