MFC
Class CScrollView
CObject
|
+--CCmdTarget
|
+--CWnd
|
+--CView
|
+--CScrollView
in AFXWIN.H
- Direct Known Subclasses:
- CFormView, CPreviewView
- class CScrollView
- extends CView
class CScrollView supports simple scrolling and scaling
| 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 )
|
protected void |
CenterOnPoint( CPoint ptCenter )
|
BOOL |
DoMouseWheel( UINT fFlags, short zDelta, CPoint point )
|
void |
FillOutsideRect( CDC* pDC, CBrush* pBrush )
|
CPoint |
GetDeviceScrollPosition() const
|
void |
GetDeviceScrollSizes( int& nMapMode, SIZE& sizeTotal, SIZE& sizePage, SIZE& sizeLine ) const
|
protected virtual const AFX_MSGMAP* |
GetMessageMap() const
|
protected void |
GetScrollBarSizes( CSize& sizeSb )
|
protected void |
GetScrollBarState( CSize sizeClient, CSize& needSb, CSize& sizeRange, CPoint& ptMove, BOOL bInsideClient )
|
CPoint |
GetScrollPosition() const
|
CSize |
GetTotalSize() const
|
protected BOOL |
GetTrueClientSize( CSize& size, CSize& sizeSb )
|
protected virtual void |
OnDraw( CDC* pDC )= 0
|
void |
OnHScroll( UINT nSBCode, UINT nPos, CScrollBar* pScrollBar )
|
BOOL |
OnMouseWheel( UINT fFlags, short zDelta, CPoint point )
|
virtual void |
OnPrepareDC( CDC* pDC, CPrintInfo* pInfo = NULL )
|
virtual BOOL |
OnScroll( UINT nScrollCode, UINT nPos, BOOL bDoScroll = TRUE )
|
virtual BOOL |
OnScrollBy( CSize sizeScroll, BOOL bDoScroll = TRUE )
|
void |
OnSize( UINT nType, int cx, int cy )
|
void |
OnVScroll( UINT nSBCode, UINT nPos, CScrollBar* pScrollBar )
|
void |
ResizeParentToFit( BOOL bShrinkOnly = TRUE )
|
protected void |
ScrollToDevicePosition( POINT ptDev )
|
void |
ScrollToPosition( POINT pt )
|
void |
SetScaleToFitSize( SIZE sizeTotal )
|
void |
SetScrollSizes( int nMapMode, SIZE sizeTotal, const SIZE& sizePage = sizeDefault, const SIZE& sizeLine = sizeDefault )
|
protected void |
UpdateBars()
|
| Methods inherited from class CView |
GetDocument, DoPreparePrinting, IsSelected, OnScroll, OnScrollBy, OnDragEnter, OnDragOver, OnDragLeave, OnDrop, OnDropEx, OnDragScroll, OnPrepareDC, OnInitialUpdate, OnActivateView, OnActivateFrame, OnUpdate, OnDraw, OnPreparePrinting, OnBeginPrinting, OnPrint, OnEndPrinting, OnEndPrintPreview, DoPrintPreview, CalcWindowRect, GetScrollBarCtrl, GetParentSplitter, OnCmdMsg, PreCreateWindow, PostNcDestroy, OnCreate, OnDestroy, OnPaint, OnMouseActivate, OnUpdateSplitCmd, OnSplitCmd, OnUpdateNextPaneMenu, OnNextPaneCmd, OnFilePrint, OnFilePrintPreview, GetMessageMap |
| 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_bCenter
protected BOOL m_bCenter;
m_bInsideUpdate
protected BOOL m_bInsideUpdate;
m_lineDev
protected CSize m_lineDev;
m_nMapMode
protected int m_nMapMode;
m_pageDev
protected CSize m_pageDev;
m_totalDev
protected CSize m_totalDev;
m_totalLog
protected CSize m_totalLog;
messageMap
protected static AFX_CORE_DATA const AFX_MSGMAP messageMap;
sizeDefault
public static AFX_CORE_DATA const SIZE sizeDefault;
CScrollView
protected CScrollView();
~CScrollView
public virtual ~CScrollView();
CalcWindowRect
public virtual void CalcWindowRect( LPRECT lpClientRect, UINT nAdjustType = adjustBorder );
CenterOnPoint
protected void CenterOnPoint( CPoint ptCenter );
DoMouseWheel
public BOOL DoMouseWheel( UINT fFlags, short zDelta, CPoint point );
FillOutsideRect
public void FillOutsideRect( CDC* pDC, CBrush* pBrush );
GetDeviceScrollPosition
public CPoint GetDeviceScrollPosition() const;
GetDeviceScrollSizes
public void GetDeviceScrollSizes( int& nMapMode, SIZE& sizeTotal, SIZE& sizePage, SIZE& sizeLine ) const;
GetMessageMap
protected virtual const AFX_MSGMAP* GetMessageMap() const;
GetScrollBarSizes
protected void GetScrollBarSizes( CSize& sizeSb );
GetScrollBarState
protected void GetScrollBarState( CSize sizeClient, CSize& needSb, CSize& sizeRange, CPoint& ptMove, BOOL bInsideClient );
GetScrollPosition
public CPoint GetScrollPosition() const;
GetTotalSize
public CSize GetTotalSize() const;
GetTrueClientSize
protected BOOL GetTrueClientSize( CSize& size, CSize& sizeSb );
OnDraw
protected virtual void OnDraw( CDC* pDC )= 0;
OnHScroll
public void OnHScroll( UINT nSBCode, UINT nPos, CScrollBar* pScrollBar );
OnMouseWheel
public BOOL OnMouseWheel( UINT fFlags, short zDelta, CPoint point );
OnPrepareDC
public virtual void OnPrepareDC( CDC* pDC, CPrintInfo* pInfo = NULL );
OnScroll
public virtual BOOL OnScroll( UINT nScrollCode, UINT nPos, BOOL bDoScroll = TRUE );
OnScrollBy
public virtual BOOL OnScrollBy( CSize sizeScroll, BOOL bDoScroll = TRUE );
OnSize
public void OnSize( UINT nType, int cx, int cy );
OnVScroll
public void OnVScroll( UINT nSBCode, UINT nPos, CScrollBar* pScrollBar );
ResizeParentToFit
public void ResizeParentToFit( BOOL bShrinkOnly = TRUE );
ScrollToDevicePosition
protected void ScrollToDevicePosition( POINT ptDev );
ScrollToPosition
public void ScrollToPosition( POINT pt );
SetScaleToFitSize
public void SetScaleToFitSize( SIZE sizeTotal );
SetScrollSizes
public void SetScrollSizes( int nMapMode, SIZE sizeTotal, const SIZE& sizePage = sizeDefault, const SIZE& sizeLine = sizeDefault );
UpdateBars
protected void UpdateBars();