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.

class CMFCPreviewCtrlImpl : public CWnd;  

Public Constructors

NameDescription
CMFCPreviewCtrlImpl::~CMFCPreviewCtrlImplDestructs a preview control object.
CMFCPreviewCtrlImpl::CMFCPreviewCtrlImplConstructs a preview control object.

Public Methods

NameDescription
CMFCPreviewCtrlImpl::CreateOverloaded. Called by a Rich Preview handler to create the Windows window.
CMFCPreviewCtrlImpl::DestroyCalled by a Rich Preview handler when it needs to destroy this control.
CMFCPreviewCtrlImpl::FocusSets input focus to this control.
CMFCPreviewCtrlImpl::GetDocumentReturns a document connected to this preview control.
CMFCPreviewCtrlImpl::RedrawTells this control to redraw.
CMFCPreviewCtrlImpl::SetDocumentCalled by the preview handler to create a relationship between the document implementation and the preview control.
CMFCPreviewCtrlImpl::SetHostSets a new parent for this control.
CMFCPreviewCtrlImpl::SetPreviewVisualsCalled by a Rich Preview handler when it needs to set visuals of rich preview content.
CMFCPreviewCtrlImpl::SetRectSets a new bounding rectangle for this control.

Protected Methods

NameDescription
CMFCPreviewCtrlImpl::DoPaintCalled by the framework to render the preview.

Protected Data Members

NameDescription
CMFCPreviewCtrlImpl::m_clrBackColorBackground color of preview window.
CMFCPreviewCtrlImpl::m_clrTextColorText color of preview window.
CMFCPreviewCtrlImpl::m_fontFont used to display text in the preview window.
CMFCPreviewCtrlImpl::m_pDocumentA pointer to a document whose content is previewed in the control.

CObject

CCmdTarget

CWnd

CMFCPreviewCtrlImpl

Show: