共用方式為


CMFCPreviewCtrlImpl::SetPreviewVisuals

Called by a Rich Preview handler when it needs to set visuals of rich preview content.

virtual void SetPreviewVisuals(
   COLORREF clrBack,
   COLORREF clrText,
   const LOGFONTW *plf
);

Parameters

  • clrBack
    Background color of preview window.

  • clrText
    Text color of preview window.

  • plf
    Font used to display text in the preview window.

Requirements

Header: afxwin.h

See Also

Reference

CMFCPreviewCtrlImpl Class