description | title | ms.date | f1_keywords | helpviewer_keywords | ms.assetid | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Learn more about: CAtlPreviewCtrlImpl Class |
CAtlPreviewCtrlImpl Class |
11/04/2016 |
|
|
39b3299e-07e4-4abc-9b6e-b54bfa3b0802 |
This class is an ATL implementation of a window that is placed on a host window provided by the Shell for Rich Preview.
Important
This class and its members cannot be used in applications that execute in the Windows Runtime.
class CAtlPreviewCtrlImpl : public CWindowImpl<CAtlPreviewCtrlImpl>, public IPreviewCtrl;
Name | Description |
---|---|
CAtlPreviewCtrlImpl::~CAtlPreviewCtrlImpl | Destructs a preview control object. |
CAtlPreviewCtrlImpl::CAtlPreviewCtrlImpl | Constructs a preview control object. |
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. |
Name | Description |
---|---|
CAtlPreviewCtrlImpl::DoPaint | Called by the framework to render the preview. |
Name | Description |
---|---|
CAtlPreviewCtrlImpl::m_plf | Font used to display text in the preview window. |
Name | Description |
---|---|
CAtlPreviewCtrlImpl::m_clrBack | Background color of the preview window. |
CAtlPreviewCtrlImpl::m_clrText | Text color of preview window. |
TBase
ATL::CMessageMap
ATL::CWindowImplRoot<TBase>
ATL::CWindowImplBaseT<TBase,TWinTraits>
ATL::CWindowImpl<CAtlPreviewCtrlImpl>
IPreviewCtrl
ATL::CAtlPreviewCtrlImpl
Header: atlpreviewctrlimpl.h
Constructs a preview control object.
CAtlPreviewCtrlImpl(void) : m_clrText(0),
m_clrBack(RGB(255, 255, 255)), m_plf(NULL);
Destructs a preview control object.
virtual ~CAtlPreviewCtrlImpl(void);
Called by a Rich Preview handler to create the Windows window.
virtual BOOL Create(HWND hWndParent, const RECT* prc);
hWndParent
A handle to the host window supplied by the Shell for Rich Preview.
prc
Specifies the initial size and position of the window.
TRUE if successful; otherwise FALSE.
Called by a Rich Preview handler when it needs to destroy this control.
virtual void Destroy();
Called by the framework to render the preview.
virtual void DoPaint(HDC hdc);
hdc
A handle to a device context for painting.
Sets input focus to this control.
virtual void Focus();
Background color of the preview window.
COLORREF m_clrBack;
Text color of the preview window.
COLORREF m_clrText;
Font used to display text in the preview window.
const LOGFONTW* m_plf;
Handles the WM_PAINT message.
LRESULT OnPaint(
UINT nMsg,
WPARAM wParam,
LPARAM lParam,
BOOL& bHandled);
nMsg
Set to WM_PAINT.
wParam
This parameter is not used.
lParam
This parameter is not used.
bHandled
When this function returns, it contains TRUE.
Always returns 0.
Tells this control to redraw.
virtual void Redraw();
Sets a new parent for this control.
virtual void SetHost(HWND hWndParent);
hWndParent
A handle to the new parent window.
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);
clrBack
Background color of the preview window.
clrText
Text color of the preview window.
plf
Font used to display text in the preview window.
Sets a new bounding rectangle for this control.
virtual void SetRect(const RECT* prc, BOOL bRedraw);
prc
Specifies the new size and position of the preview control.
bRedraw
Specifies whether the control should be redrawn.