CMFCPreviewCtrlImpl Class

 

The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.

The latest version of this topic can be found at CMFCPreviewCtrlImpl Class.

This class implements a window that is placed on a host window provided by the Shell for Rich Preview.

Syntax

class CMFCPreviewCtrlImpl : public CWnd;  

Members

Public Constructors

Name Description
CMFCPreviewCtrlImpl::~CMFCPreviewCtrlImpl Destructs a preview control object.
CMFCPreviewCtrlImpl::CMFCPreviewCtrlImpl Constructs a preview control object.

Public Methods

Name Description
CMFCPreviewCtrlImpl::Create Overloaded. Called by a Rich Preview handler to create the Windows window.
CMFCPreviewCtrlImpl::Destroy Called by a Rich Preview handler when it needs to destroy this control.
CMFCPreviewCtrlImpl::Focus Sets input focus to this control.
CMFCPreviewCtrlImpl::GetDocument Returns a document connected to this preview control.
CMFCPreviewCtrlImpl::Redraw Tells this control to redraw.
CMFCPreviewCtrlImpl::SetDocument Called by the preview handler to create a relationship between the document implementation and the preview control.
CMFCPreviewCtrlImpl::SetHost Sets a new parent for this control.
CMFCPreviewCtrlImpl::SetPreviewVisuals Called by a Rich Preview handler when it needs to set visuals of rich preview content.
CMFCPreviewCtrlImpl::SetRect Sets a new bounding rectangle for this control.

Protected Methods

Name Description
CMFCPreviewCtrlImpl::DoPaint Called by the framework to render the preview.

Protected Data Members

Name Description
CMFCPreviewCtrlImpl::m_clrBackColor Background color of preview window.
CMFCPreviewCtrlImpl::m_clrTextColor Text color of preview window.
CMFCPreviewCtrlImpl::m_font Font used to display text in the preview window.
CMFCPreviewCtrlImpl::m_pDocument A pointer to a document whose content is previewed in the control.

Remarks

Inheritance Hierarchy

CObject

CCmdTarget

CWnd

CMFCPreviewCtrlImpl