Share via


CView Class Members

Operations

DoPreparePrinting Displays Print dialog box and creates printer device context; call when overriding the OnPreparePrinting member function.
GetDocument Returns the document associated with the view.

OLE Overridables

OnDragEnter Called when an item is first dragged into the drag-and-drop region of a view.
OnDragLeave Called when a dragged item leaves the drag-and-drop region of a view.
OnDragOver Called when an item is dragged over the drag-and-drop region of a view.
OnDrop Called when an item has been dropped into the drag-and-drop region of a view, default handler.
OnDropEx Called when an item has been dropped into the drag-and-drop region of a view, primary handler.
OnDragScroll Called to determine whether the cursor is dragged into the scroll region of the window.
OnInitialUpdate Called after a view is first attached to a document.
OnScrollBy Called when a view containing active in-place OLE items is scrolled.
OnScroll Called when OLE items are dragged beyond the borders of the view.

Overridables

IsSelected Tests whether a document item is selected. Required for OLE support.
OnActivateView Called when a view is activated.
OnActivateFrame Called when the frame window containing the view is activated or deactivated.
OnBeginPrinting Called when a print job begins; override to allocate graphics device interface (GDI) resources.
OnDraw Called to render an image of the document for screen display, printing, or print preview. Implementation required.
OnEndPrinting Called when a print job ends; override to deallocate GDI resources.
OnEndPrintPreview Called when preview mode is exited.
OnPrepareDC Called before the OnDraw member function is called for screen display or the OnPrint member function is called for printing or print preview.
OnPreparePrinting Called before a document is printed or previewed; override to initialize Print dialog box.
OnPrint Called to print or preview a page of the document.
OnUpdate Called to notify a view that its document has been modified.

Constructors

CView Constructs a CView object.

CView OverviewBase Class MembersHierarchy Chart