CPrintPreviewFrameImpl::SetLayoutRoot

ILayoutNode*CPrintPreviewFrameImpl::SetLayoutRoot(ILayoutNode*pNewRootNode)

Set the root layout node.

Defined in: PrintPreviewWnd.h

Return Value

Previous root layout node.

Parameters

pNewRootNode

Pointer to new root layout node.

Comments

This function replaces the current layout root node with a new layout root node.

Class Members

CPrintPreviewFrameImpl() : ()

Default constructor for print preview frame window.

virtual ~CPrintPreviewFrameImpl()

Free memory used by print preview.

CPrintDoc m_printDoc

Print document object which acts as the output target.

CPrtPreviewClientWnd* m_pPreviewView

Client window that displays the print preview view.

CPrtPreviewDlgBar* m_pPreviewDlgBar

Modeless dialog used to send commands to the print preview window.

IBorderClientLayout* m_pPreviewLayout

Root layout node used during print preview.

ILayoutNode* m_pPrevLayoutRoot

Used to restore layout manager to previous state when print preview is done.

CControlBarListener m_previewListener

Listens to the dialog bar for certain events.

HWND m_hPrevFocusWnd

Handle of window that had input focus before print preview window shown.

virtual IPrintable* GetCurrentPrintable()

Returns a pointer to object to be printed.

virtual bool BeginPrintPreview(IPrintable* pIPrintable)

Show the print preview window inside the client area of the frame window.

virtual void EndPrintPreview()

Close the print preview window and restore normal view inside frame.

virtual void OnBeginPreview()

Called by the framework just before the print preview window is displayed.

virtual void OnEndPreview()

Called by the framework just after the print preview window is closed.

ILayoutNode* SetLayoutRoot(ILayoutNode* pNewRootNode)

Set the root layout node.

bool CreatePreviewView()

Create the print preview view.

void DestroyPreviewView()

Destroy the print preview window.

bool CreatePreviewDialogBar()

Create the print preview dialog bar.

void DestroyPreviewDialogBar()

Destroy the print preview dialog bar.

bool CreatePreviewLayout()

Create the print preview layout nodes.

void DestroyPreviewLayout()

Free memory used by print preview for layout management.