Help Center

CTextDocument2.AttachMsgFiltermethod

Attaches a new message filter to the edit instance. All window messages that the edit instance receives are forwarded to the message filter.

Windowsmethoddoc-orphan
No implementation located. This member is documented, but the source scan found no matching declaration. It is likely declared in a header this scan does not resolve, or provided by a macro.

Syntax

FUNCTION AttachMsgFilter (BYVAL pFilter AS IUnknown PTR) AS HRESULT

Parameters

NameDescription
pFilterThe message filter.

Return value

If the method succeeds, it returns NOERROR. Otherwise, it returns an HRESULT error code.

Description

Attaches a new message filter to the edit instance. All window messages that the edit instance receives are forwarded to the message filter.

Remarks

The message filter must be bound to the document before it can be used.

Reference