MFC
Class CView
CObject
|
+--CCmdTarget
|
+--CWnd
|
+--CView
in AFXWIN.H
- Direct Known Subclasses:
- CCtrlView, CScrollView
- class CView
- extends CWnd
| Fields inherited from class CWnd |
m_hWnd, wndTop, wndBottom, wndTopMost, wndNoTopMost, m_hWndOwner, m_nFlags, m_pfnSuper, m_nMsgDragList, m_nModalResult, m_pDropTarget, m_pCtrlCont, m_pCtrlSite, messageMap |
| Fields inherited from class CCmdTarget |
messageMap, commandMap, dispatchMap, connectionMap, interfaceMap, eventsinkMap, m_dwRef, m_pOuterUnknown, m_xInnerUnknown, m_xDispatch, m_bResultExpected, m_xConnPtContainer |
|
Method Summary |
virtual void |
CalcWindowRect( LPRECT lpClientRect, UINT nAdjustType = adjustBorder )
|
BOOL |
DoPreparePrinting( CPrintInfo* pInfo )
|
BOOL |
DoPrintPreview( UINT nIDResource, CView* pPrintView, CRuntimeClass* pPreviewViewClass, CPrintPreviewState* pState )
|
CDocument* |
GetDocument() const
|
protected virtual const AFX_MSGMAP* |
GetMessageMap() const
|
static CSplitterWnd* PASCAL |
GetParentSplitter( const CWnd* pWnd, BOOL bAnyState )
|
virtual CScrollBar* |
GetScrollBarCtrl( int nBar ) const
|
virtual BOOL |
IsSelected( const CObject* pDocItem ) const
|
protected virtual void |
OnActivateFrame( UINT nState, CFrameWnd* pFrameWnd )
|
protected virtual void |
OnActivateView( BOOL bActivate, CView* pActivateView, CView* pDeactiveView )
|
protected virtual void |
OnBeginPrinting( CDC* pDC, CPrintInfo* pInfo )
|
virtual BOOL |
OnCmdMsg( UINT nID, int nCode, void* pExtra, AFX_CMDHANDLERINFO* pHandlerInfo )
|
protected int |
OnCreate( LPCREATESTRUCT lpcs )
|
protected void |
OnDestroy()
|
virtual DROPEFFECT |
OnDragEnter( COleDataObject* pDataObject, DWORD dwKeyState, CPoint point )
|
virtual void |
OnDragLeave()
|
virtual DROPEFFECT |
OnDragOver( COleDataObject* pDataObject, DWORD dwKeyState, CPoint point )
|
virtual DROPEFFECT |
OnDragScroll( DWORD dwKeyState, CPoint point )
|
protected virtual void |
OnDraw( CDC* pDC )= 0
|
virtual BOOL |
OnDrop( COleDataObject* pDataObject, DROPEFFECT dropEffect, CPoint point )
|
virtual DROPEFFECT |
OnDropEx( COleDataObject* pDataObject, DROPEFFECT dropDefault, DROPEFFECT dropList, CPoint point )
|
protected virtual void |
OnEndPrinting( CDC* pDC, CPrintInfo* pInfo )
|
protected virtual void |
OnEndPrintPreview( CDC* pDC, CPrintInfo* pInfo, POINT point, CPreviewView* pView )
|
protected void |
OnFilePrint()
|
protected void |
OnFilePrintPreview()
|
virtual void |
OnInitialUpdate()
|
protected int |
OnMouseActivate( CWnd* pDesktopWnd, UINT nHitTest, UINT message )
|
protected BOOL |
OnNextPaneCmd( UINT nID )
|
protected void |
OnPaint()
|
virtual void |
OnPrepareDC( CDC* pDC, CPrintInfo* pInfo = NULL )
|
protected virtual BOOL |
OnPreparePrinting( CPrintInfo* pInfo )
|
protected virtual void |
OnPrint( CDC* pDC, CPrintInfo* pInfo )
|
virtual BOOL |
OnScroll( UINT nScrollCode, UINT nPos, BOOL bDoScroll = TRUE )
|
virtual BOOL |
OnScrollBy( CSize sizeScroll, BOOL bDoScroll = TRUE )
|
protected BOOL |
OnSplitCmd( UINT nID )
|
protected virtual void |
OnUpdate( CView* pSender, LPARAM lHint, CObject* pHint )
|
protected void |
OnUpdateNextPaneMenu( CCmdUI* pCmdUI )
|
protected void |
OnUpdateSplitCmd( CCmdUI* pCmdUI )
|
protected virtual void |
PostNcDestroy()
|
protected virtual BOOL |
PreCreateWindow( CREATESTRUCT& cs )
|
| Methods inherited from class CWnd |
GetCurrentMessage, HWND, operator==, operator!=, GetSafeHwnd, GetStyle, GetExStyle, ModifyStyle, ModifyStyleEx, GetOwner, SetOwner, FromHandle, FromHandlePermanent, DeleteTempMap, Attach, Detach, PreSubclassWindow, SubclassWindow, SubclassDlgItem, UnsubclassWindow, ExecuteDlgInit, ExecuteDlgInit, Create, CreateEx, CreateEx, CreateControl, CreateControl, CreateControl, GetControlUnknown, DestroyWindow, PreCreateWindow, CalcWindowRect, GetDlgCtrlID, SetDlgCtrlID, GetDlgItem, GetDlgItem, GetDescendantWindow, SendMessageToDescendants, GetParentFrame, GetTopLevelParent, GetTopLevelOwner, GetParentOwner, GetTopLevelFrame, GetSafeOwner, SendMessage, PostMessage, SendNotifyMessage, SendChildNotifyLastMsg, IsDialogMessage, SetWindowText, GetWindowText, GetWindowText, GetWindowTextLength, SetFont, GetFont, GetMenu, SetMenu, DrawMenuBar, GetSystemMenu, HiliteMenuItem, IsIconic, IsZoomed, MoveWindow, MoveWindow, SetWindowRgn, GetWindowRgn, SetWindowPos, ArrangeIconicWindows, BringWindowToTop, GetWindowRect, GetClientRect, GetWindowPlacement, SetWindowPlacement, ClientToScreen, ClientToScreen, ScreenToClient, ScreenToClient, MapWindowPoints, MapWindowPoints, BeginPaint, EndPaint, GetDC, GetWindowDC, ReleaseDC, Print, PrintClient, UpdateWindow, SetRedraw, GetUpdateRect, GetUpdateRgn, Invalidate, InvalidateRect, InvalidateRgn, ValidateRect, ValidateRgn, ShowWindow, IsWindowVisible, ShowOwnedPopups, GetDCEx, LockWindowUpdate, UnlockWindowUpdate, RedrawWindow, EnableScrollBar, SetTimer, KillTimer, EnableToolTips, EnableTrackingToolTips, CancelToolTips, FilterToolTipMessage, OnToolHitTest, IsWindowEnabled, EnableWindow, GetActiveWindow, SetActiveWindow, SetForegroundWindow, GetForegroundWindow, GetCapture, SetCapture, GetFocus, SetFocus, GetDesktopWindow, CloseWindow, OpenIcon, CheckDlgButton, CheckRadioButton, GetCheckedRadioButton, DlgDirList, DlgDirListComboBox, DlgDirSelect, DlgDirSelectComboBox, GetDlgItemInt, GetDlgItemText, GetDlgItemText, GetNextDlgGroupItem, GetNextDlgTabItem, IsDlgButtonChecked, SendDlgItemMessage, SetDlgItemInt, SetDlgItemText, GetScrollPos, GetScrollRange, ScrollWindow, SetScrollPos, SetScrollRange, ShowScrollBar, EnableScrollBarCtrl, GetScrollBarCtrl, ScrollWindowEx, SetScrollInfo, GetScrollInfo, GetScrollLimit, ChildWindowFromPoint, ChildWindowFromPoint, FindWindow, GetNextWindow, GetTopWindow, GetWindow, GetLastActivePopup, IsChild, GetParent, SetParent, WindowFromPoint, FlashWindow, MessageBox, ChangeClipboardChain, SetClipboardViewer, OpenClipboard, GetClipboardOwner, GetClipboardViewer, GetOpenClipboardWindow, CreateCaret, CreateSolidCaret, CreateGrayCaret, GetCaretPos, SetCaretPos, HideCaret, ShowCaret, DragAcceptFiles, SetIcon, GetIcon, SetWindowContextHelpId, GetWindowContextHelpId, UpdateData, OnHelp, OnHelpIndex, OnHelpFinder, OnHelpUsing, WinHelp, RepositionBars, UpdateDialogControls, CenterWindow, RunModalLoop, ContinueModal, EndModalLoop, InvokeHelper, SetProperty, GetProperty, GetDSCCursor, BindDefaultProperty, BindProperty, OnCommand, OnNotify, OnActivate, OnActivateApp, OnActivateTopLevel, OnCancelMode, OnChildActivate, OnClose, OnContextMenu, OnCopyData, OnCreate, OnCtlColor, OnDestroy, OnEnable, OnEndSession, OnEnterIdle, OnEraseBkgnd, OnGetMinMaxInfo, OnHelpInfo, OnIconEraseBkgnd, OnKillFocus, OnMenuChar, OnMenuSelect, OnMove, OnPaint, OnParentNotify, OnQueryDragIcon, OnQueryEndSession, OnQueryNewPalette, OnQueryOpen, OnSetFocus, OnShowWindow, OnSize, OnTCard, OnWindowPosChanging, OnWindowPosChanged, OnNcActivate, OnNcCalcSize, OnNcCreate, OnNcDestroy, OnNcHitTest, OnNcLButtonDblClk, OnNcLButtonDown, OnNcLButtonUp, OnNcMButtonDblClk, OnNcMButtonDown, OnNcMButtonUp, OnNcMouseMove, OnNcPaint, OnNcRButtonDblClk, OnNcRButtonDown, OnNcRButtonUp, OnDropFiles, OnPaletteIsChanging, OnSysChar, OnSysCommand, OnSysDeadChar, OnSysKeyDown, OnSysKeyUp, OnCompacting, OnDevModeChange, OnFontChange, OnPaletteChanged, OnSpoolerStatus, OnSysColorChange, OnTimeChange, OnSettingChange, OnWinIniChange, OnChar, OnDeadChar, OnHScroll, OnVScroll, OnKeyDown, OnKeyUp, OnLButtonDblClk, OnLButtonDown, OnLButtonUp, OnMButtonDblClk, OnMButtonDown, OnMButtonUp, OnMouseActivate, OnMouseMove, OnMouseWheel, OnRegisteredMouseWheel, OnRButtonDblClk, OnRButtonDown, OnRButtonUp, OnSetCursor, OnTimer, OnInitMenu, OnInitMenuPopup, OnAskCbFormatName, OnChangeCbChain, OnDestroyClipboard, OnDrawClipboard, OnHScrollClipboard, OnPaintClipboard, OnRenderAllFormats, OnRenderFormat, OnSizeClipboard, OnVScrollClipboard, OnCompareItem, OnDeleteItem, OnDrawItem, OnGetDlgCode, OnMeasureItem, OnCharToItem, OnVKeyToItem, OnMDIActivate, OnEnterMenuLoop, OnExitMenuLoop, OnStyleChanged, OnStyleChanging, OnSizing, OnMoving, OnCaptureChanged, OnDeviceChange, GetSuperWndProcAddr, DoDataExchange, BeginModalState, EndModalState, PreTranslateMessage, OnAmbientProperty, WindowProc, OnWndMsg, Default, DefWindowProc, PostNcDestroy, OnChildNotify, ReflectChildNotify, ReflectLastMsg, CheckAutoCenter, SubclassCtl3d, SubclassDlg3d, GrayCtlColor, OnGrayCtlColor, HandleFloatingSysCommand, IsTopParentActive, ActivateTopParent, WalkPreTranslateTree, GetDescendantWindow, SendMessageToDescendants, IsFrameWnd, OnFinalRelease, PreTranslateInput, ModifyStyle, ModifyStyleEx, _FilterToolTipMessage, _EnableToolTips, GetSafeOwner_, CreateDlg, CreateDlgIndirect, CreateDlgIndirect, InitControlContainer, SetOccDialogInfo, AttachControlSite, AttachControlSite, OnNTCtlColor, OnQuery3dControls, OnDisplayChange, OnDragList, GetMessageMap |
| Methods inherited from class CCmdTarget |
GetIDispatch, FromIDispatch, IsResultExpected, EnableAutomation, EnableConnections, BeginWaitCursor, EndWaitCursor, RestoreWaitCursor, EnumOleVerbs, DoOleVerb, OnCmdMsg, OnFinalRelease, IsInvokeAllowed, EnableTypeLib, GetTypeInfoOfGuid, GetDispatchIID, GetTypeInfoCount, GetTypeLibCache, GetTypeLib, GetNotSupported, SetNotSupported, GetRoutingView, GetRoutingFrame, GetRoutingView_, GetRoutingFrame_, GetMessageMap, GetCommandMap, GetDispatchMap, GetConnectionMap, GetInterfaceMap, GetEventSinkMap, EnableAggregation, ExternalDisconnect, GetControllingUnknown, InternalQueryInterface, InternalAddRef, InternalRelease, ExternalQueryInterface, ExternalAddRef, ExternalRelease, GetInterface, QueryAggregates, OnCreateAggregates, GetInterfaceHook, GetStandardProp, SetStandardProp, GetEntryCount, GetDispEntry, MemberIDFromName, GetStackSize, PushStackArgs, CallMemberFunc, OnEvent, GetEventSinkEntry, GetExtraConnectionPoints, GetConnectionHook |
m_pDocument
protected CDocument* m_pDocument;
messageMap
protected static AFX_CORE_DATA const AFX_MSGMAP messageMap;
CView
protected CView();
~CView
public virtual ~CView();
CalcWindowRect
public virtual void CalcWindowRect( LPRECT lpClientRect, UINT nAdjustType = adjustBorder );
DoPreparePrinting
public BOOL DoPreparePrinting( CPrintInfo* pInfo );
DoPrintPreview
public BOOL DoPrintPreview( UINT nIDResource, CView* pPrintView, CRuntimeClass* pPreviewViewClass, CPrintPreviewState* pState );
GetDocument
public CDocument* GetDocument() const;
GetMessageMap
protected virtual const AFX_MSGMAP* GetMessageMap() const;
GetParentSplitter
public static CSplitterWnd* PASCAL GetParentSplitter( const CWnd* pWnd, BOOL bAnyState );
GetScrollBarCtrl
public virtual CScrollBar* GetScrollBarCtrl( int nBar ) const;
IsSelected
public virtual BOOL IsSelected( const CObject* pDocItem ) const;
OnActivateFrame
protected virtual void OnActivateFrame( UINT nState, CFrameWnd* pFrameWnd );
OnActivateView
protected virtual void OnActivateView( BOOL bActivate, CView* pActivateView, CView* pDeactiveView );
OnBeginPrinting
protected virtual void OnBeginPrinting( CDC* pDC, CPrintInfo* pInfo );
OnCmdMsg
public virtual BOOL OnCmdMsg( UINT nID, int nCode, void* pExtra, AFX_CMDHANDLERINFO* pHandlerInfo );
OnCreate
protected int OnCreate( LPCREATESTRUCT lpcs );
OnDestroy
protected void OnDestroy();
OnDragEnter
public virtual DROPEFFECT OnDragEnter( COleDataObject* pDataObject, DWORD dwKeyState, CPoint point );
OnDragLeave
public virtual void OnDragLeave();
OnDragOver
public virtual DROPEFFECT OnDragOver( COleDataObject* pDataObject, DWORD dwKeyState, CPoint point );
OnDragScroll
public virtual DROPEFFECT OnDragScroll( DWORD dwKeyState, CPoint point );
OnDraw
protected virtual void OnDraw( CDC* pDC )= 0;
OnDrop
public virtual BOOL OnDrop( COleDataObject* pDataObject, DROPEFFECT dropEffect, CPoint point );
OnDropEx
public virtual DROPEFFECT OnDropEx( COleDataObject* pDataObject, DROPEFFECT dropDefault, DROPEFFECT dropList, CPoint point );
OnEndPrinting
protected virtual void OnEndPrinting( CDC* pDC, CPrintInfo* pInfo );
OnEndPrintPreview
protected virtual void OnEndPrintPreview( CDC* pDC, CPrintInfo* pInfo, POINT point, CPreviewView* pView );
OnFilePrint
protected void OnFilePrint();
OnFilePrintPreview
protected void OnFilePrintPreview();
OnInitialUpdate
public virtual void OnInitialUpdate();
OnMouseActivate
protected int OnMouseActivate( CWnd* pDesktopWnd, UINT nHitTest, UINT message );
OnNextPaneCmd
protected BOOL OnNextPaneCmd( UINT nID );
OnPaint
protected void OnPaint();
OnPrepareDC
public virtual void OnPrepareDC( CDC* pDC, CPrintInfo* pInfo = NULL );
OnPreparePrinting
protected virtual BOOL OnPreparePrinting( CPrintInfo* pInfo );
OnPrint
protected virtual void OnPrint( CDC* pDC, CPrintInfo* pInfo );
OnScroll
public virtual BOOL OnScroll( UINT nScrollCode, UINT nPos, BOOL bDoScroll = TRUE );
OnScrollBy
public virtual BOOL OnScrollBy( CSize sizeScroll, BOOL bDoScroll = TRUE );
OnSplitCmd
protected BOOL OnSplitCmd( UINT nID );
OnUpdate
protected virtual void OnUpdate( CView* pSender, LPARAM lHint, CObject* pHint );
OnUpdateNextPaneMenu
protected void OnUpdateNextPaneMenu( CCmdUI* pCmdUI );
OnUpdateSplitCmd
protected void OnUpdateSplitCmd( CCmdUI* pCmdUI );
PostNcDestroy
protected virtual void PostNcDestroy();
PreCreateWindow
protected virtual BOOL PreCreateWindow( CREATESTRUCT& cs );