Help Center

CRichEditCtx.AttachMsgFiltermethod

Attaches a new message filter to the edit instance.

Windowsmethoddocumented

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

  • Defined in AfxNova/CRichEditCtx.inc:4657
  • Documented in Windows/WIndows Controls/RichEdit/CRichEditCtx Class.md
  • Topic: CRichEditCtx Class