CAtlPreviewCtrlImpl Class

This class is an ATL implementation of a window that is placed on a host window provided by the Shell for Rich Preview.

class CAtlPreviewCtrlImpl : public CWindowImpl<CAtlPreviewCtrlImpl>, public IPreviewCtrl;

Members

Public Constructors

Name

Description

CAtlPreviewCtrlImpl::~CAtlPreviewCtrlImpl

Destructs a preview control object.

CAtlPreviewCtrlImpl::CAtlPreviewCtrlImpl

Constructs a preview control object.

Public Methods

Name

Description

CAtlPreviewCtrlImpl::Create

Called by a Rich Preview handler to create the Windows window.

CAtlPreviewCtrlImpl::Destroy

Called by a Rich Preview handler when it needs to destroy this control.

CAtlPreviewCtrlImpl::Focus

Sets input focus to this control.

CAtlPreviewCtrlImpl::OnPaint

Handles the WM_PAINT message.

CAtlPreviewCtrlImpl::Redraw

Tells this control to redraw.

CAtlPreviewCtrlImpl::SetHost

Sets a new parent for this control.

CAtlPreviewCtrlImpl::SetPreviewVisuals

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

CAtlPreviewCtrlImpl::SetRect

Sets a new bounding rectangle for this control.

Protected Methods

Name

Description

CAtlPreviewCtrlImpl::DoPaint

Called by the framework to render the preview.

Protected Constants

Name

Description

CAtlPreviewCtrlImpl::m_plf

Font used to display text in the preview window.

Protected Data Members

Name

Description

CAtlPreviewCtrlImpl::m_clrBack

Background color of the preview window.

CAtlPreviewCtrlImpl::m_clrText

Text color of preview window.

Inheritance Hierarchy

TBase

ATL::CMessageMap

   ATL::CWindowImplRoot<TBase>

      ATL::CWindowImplBaseT<TBase,TWinTraits>

         ATL::CWindowImpl<CAtlPreviewCtrlImpl>

         IPreviewCtrl

            ATL::CAtlPreviewCtrlImpl

Requirements

Header: atlpreviewctrlimpl.h

See Also

Other Resources

ATL Namespace