SECEditView Class

class SECEditView: public SECEditViewWrapper_T, public CView, public SECEditViewport

The SECEditView class combines a CView with a SECEditViewport for rendering the data associated with the model (SECEdit) and directing user input to the controller (SECEditController). This class represents the view portion of the model-view-controller triad. Unlike the SECEditCtrl class, SECEditView provides print / print preview support.

Defined in: SECEditView.h

See Also

SECEditViewport  SECEdit  SECEditController

Class Members

Construction / initialization

 SECEditView()

Protected constructor used by dynamic creation

Attributes

virtual CPoint  SetLogOrigin(int x, int y)

Sets the logical origin.

inline CPoint  SetLogOrigin(const CPoint& ptLog)

Sets the logical origin

Operations

virtual void  OnUpdate(sfl::IMvcSubject* pSubject, sfl::IMvcMessage* pMsg)

Handle notifications of changes to the subject this viewport is observing.

virtual void  OnInitialUpdate()

Called when window is first initialized

virtual void  OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo)

Called when printing is beginning

virtual void  OnEndPrinting(CDC* pDC, CPrintInfo* pInfo)

Called when printing is complete

virtual BOOL  OnPreparePrinting(CPrintInfo* pInfo)

Called to preapare for printing

virtual void  OnPrint(CDC* pDC, CPrintInfo* pInfo)

Called to print each page

Implementation

virtual  ~SECEditView()

Destructor

_SECEditPrinterInfo*  m_pPrinterInfo

Printing information structure for the curent print job in progress

virtual void  SetPagination(CDC* pDC)

Sets the pagination of the document based on the device context.

virtual void  SetMargins(CDC* pDC, CRect& rcPage)

Sets the print margins

virtual int  GetHeaderHeight(CDC* pDC)

Gets the height for the header area

virtual int  GetFooterHeight(CDC* pDC)

Gets the height for the footer area

virtual void  PrintHeader(CDC* pDC, CPrintInfo* pInfo, const CRect& rcHeader)

Prints the header

virtual void  PrintBody(CDC* pDC, CPrintInfo* pInfo, const CRect& rcBody)

Prints the body of the page

virtual void  PrintFooter(CDC* pDC, CPrintInfo* pInfo, const CRect& rcFooter)

Prints the footer

virtual SECEdit*  GetEdit()

Returns a pointer to the SECEdit model for this view.

afx_msg int  OnCreate(LPCREATESTRUCT lpCreateStruct)

WM_CREATE handler for this view

Protected data members

CSplitterWnd*  m_pSplitterParent

The CSplitterWnd parent of this view, if contained in a splitter window.

int  m_nSplitRow

The splitter row for this view, if contained in a splitter window.

int  m_nSplitCol

The splitter column of this view, if contained in a splitter window.