GME
13
|
#include <ScrollZoomView.h>
Public Member Functions | |
void | SetScaleToFitSize (SIZE sizeTotal) |
void | SetScrollSizes (int nMapMode, SIZE sizeTotal, int scalePercent, const SIZE &sizePage=sizeDefault, const SIZE &sizeLine=sizeDefault) |
CPoint | GetScrollPosition () const |
CSize | GetTotalSize () const |
CPoint | GetDeviceScrollPosition () const |
void | GetDeviceScrollSizes (int &nMapMode, SIZE &sizeTotal, SIZE &sizePage, SIZE &sizeLine) const |
void | ScrollToPosition (POINT pt) |
void | FillOutsideRect (CDC *pDC, CBrush *pBrush) |
void | ResizeParentToFit (BOOL bShrinkOnly=TRUE) |
BOOL | DoMouseWheel (UINT fFlags, short zDelta, CPoint point) |
void | notifyPanning (CPoint pt) |
virtual | ~CScrollZoomView () |
virtual void | CalcWindowRect (LPRECT lpClientRect, UINT nAdjustType=adjustBorder) |
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) |
afx_msg void | OnSize (UINT nType, int cx, int cy) |
afx_msg void | OnHScroll (UINT nSBCode, UINT nPos, CScrollBar *pScrollBar) |
afx_msg void | OnVScroll (UINT nSBCode, UINT nPos, CScrollBar *pScrollBar) |
afx_msg BOOL | OnMouseWheel (UINT fFlags, short zDelta, CPoint point) |
void | SetScaleToFitSize (SIZE sizeTotal) |
void | SetScrollSizes (int nMapMode, SIZE sizeTotal, int scalePercent, const SIZE &sizePage=sizeDefault, const SIZE &sizeLine=sizeDefault) |
CPoint | GetScrollPosition () const |
CSize | GetTotalSize () const |
CPoint | GetDeviceScrollPosition () const |
void | GetDeviceScrollSizes (int &nMapMode, SIZE &sizeTotal, SIZE &sizePage, SIZE &sizeLine) const |
void | ScrollToPosition (POINT pt) |
void | FillOutsideRect (CDC *pDC, CBrush *pBrush) |
void | ResizeParentToFit (BOOL bShrinkOnly=TRUE) |
BOOL | DoMouseWheel (UINT fFlags, short zDelta, CPoint point) |
void | notifyPanning (CPoint pt) |
virtual | ~CScrollZoomView () |
virtual void | CalcWindowRect (LPRECT lpClientRect, UINT nAdjustType=adjustBorder) |
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) |
afx_msg void | OnSize (UINT nType, int cx, int cy) |
afx_msg void | OnHScroll (UINT nSBCode, UINT nPos, CScrollBar *pScrollBar) |
afx_msg void | OnVScroll (UINT nSBCode, UINT nPos, CScrollBar *pScrollBar) |
afx_msg BOOL | OnMouseWheel (UINT fFlags, short zDelta, CPoint point) |
Static Public Member Functions | |
static UINT | GetMouseScrollLines (void) |
Static Public Attributes | |
static AFX_DATA const SIZE | sizeDefault = {0,0} |
Protected Member Functions | |
CScrollZoomView () | |
void | CenterOnPoint (CPoint ptCenter) |
void | ScrollToDevicePosition (POINT ptDev) |
virtual void | OnDraw (CDC *pDC)=0 |
void | UpdateBars () |
BOOL | GetTrueClientSize (CSize &size, CSize &sizeSb) |
void | GetScrollBarSizes (CSize &sizeSb) |
void | GetScrollBarState (CSize sizeClient, CSize &needSb, CSize &sizeRange, CPoint &ptMove, BOOL bInsideClient) |
CScrollZoomView () | |
void | CenterOnPoint (CPoint ptCenter) |
void | ScrollToDevicePosition (POINT ptDev) |
virtual void | OnDraw (CDC *pDC)=0 |
void | UpdateBars () |
BOOL | GetTrueClientSize (CSize &size, CSize &sizeSb) |
void | GetScrollBarSizes (CSize &sizeSb) |
void | GetScrollBarState (CSize sizeClient, CSize &needSb, CSize &sizeRange, CPoint &ptMove, BOOL bInsideClient) |
Protected Attributes | |
bool | m_zoomScroll |
CPoint | m_zoomP |
bool | m_noHscroll |
bool | m_noVscroll |
int | m_nMapMode |
CSize | m_totalLog |
CSize | m_totalDev |
CSize | m_pageDev |
CSize | m_lineDev |
int | m_scalePercent |
BOOL | m_bCenter |
BOOL | m_bInsideUpdate |
Static Protected Attributes | |
static UINT | uCachedScrollLines = 3 |
static bool | bScrollLinesRequested = false |
Definition at line 19 of file Gme/ScrollZoomView.h.
CScrollZoomView::CScrollZoomView | ( | ) | [protected] |
Definition at line 45 of file Gme/ScrollZoomView.cpp.
CScrollZoomView::~CScrollZoomView | ( | ) | [virtual] |
Definition at line 61 of file Gme/ScrollZoomView.cpp.
CScrollZoomView::CScrollZoomView | ( | ) | [protected] |
virtual CScrollZoomView::~CScrollZoomView | ( | ) | [virtual] |
virtual void CScrollZoomView::CalcWindowRect | ( | LPRECT | lpClientRect, |
UINT | nAdjustType = adjustBorder |
||
) | [virtual] |
void CScrollZoomView::CalcWindowRect | ( | LPRECT | lpClientRect, |
UINT | nAdjustType = adjustBorder |
||
) | [virtual] |
Definition at line 797 of file Gme/ScrollZoomView.cpp.
void CScrollZoomView::CenterOnPoint | ( | CPoint | ptCenter | ) | [protected] |
void CScrollZoomView::CenterOnPoint | ( | CPoint | ptCenter | ) | [protected] |
Definition at line 501 of file Gme/ScrollZoomView.cpp.
BOOL CScrollZoomView::DoMouseWheel | ( | UINT | fFlags, |
short | zDelta, | ||
CPoint | point | ||
) |
BOOL CScrollZoomView::DoMouseWheel | ( | UINT | fFlags, |
short | zDelta, | ||
CPoint | point | ||
) |
Definition at line 908 of file Gme/ScrollZoomView.cpp.
void CScrollZoomView::FillOutsideRect | ( | CDC * | pDC, |
CBrush * | pBrush | ||
) |
void CScrollZoomView::FillOutsideRect | ( | CDC * | pDC, |
CBrush * | pBrush | ||
) |
Definition at line 413 of file Gme/ScrollZoomView.cpp.
CPoint CScrollZoomView::GetDeviceScrollPosition | ( | ) | const |
CPoint CScrollZoomView::GetDeviceScrollPosition | ( | ) | const |
Definition at line 319 of file Gme/ScrollZoomView.cpp.
void CScrollZoomView::GetDeviceScrollSizes | ( | int & | nMapMode, |
SIZE & | sizeTotal, | ||
SIZE & | sizePage, | ||
SIZE & | sizeLine | ||
) | const |
void CScrollZoomView::GetDeviceScrollSizes | ( | int & | nMapMode, |
SIZE & | sizeTotal, | ||
SIZE & | sizePage, | ||
SIZE & | sizeLine | ||
) | const |
Definition at line 343 of file Gme/ScrollZoomView.cpp.
UINT CScrollZoomView::GetMouseScrollLines | ( | void | ) | [static] |
Definition at line 65 of file Gme/ScrollZoomView.cpp.
void CScrollZoomView::GetScrollBarSizes | ( | CSize & | sizeSb | ) | [protected] |
void CScrollZoomView::GetScrollBarSizes | ( | CSize & | sizeSb | ) | [protected] |
Definition at line 547 of file Gme/ScrollZoomView.cpp.
void CScrollZoomView::GetScrollBarState | ( | CSize | sizeClient, |
CSize & | needSb, | ||
CSize & | sizeRange, | ||
CPoint & | ptMove, | ||
BOOL | bInsideClient | ||
) | [protected] |
void CScrollZoomView::GetScrollBarState | ( | CSize | sizeClient, |
CSize & | needSb, | ||
CSize & | sizeRange, | ||
CPoint & | ptMove, | ||
BOOL | bInsideClient | ||
) | [protected] |
Definition at line 600 of file Gme/ScrollZoomView.cpp.
CPoint CScrollZoomView::GetScrollPosition | ( | ) | const |
CPoint CScrollZoomView::GetScrollPosition | ( | ) | const |
Definition at line 252 of file Gme/ScrollZoomView.cpp.
CSize CScrollZoomView::GetTotalSize | ( | ) | const [inline] |
Definition at line 40 of file GMEView/ScrollZoomView.h.
CSize CScrollZoomView::GetTotalSize | ( | ) | const [inline] |
Definition at line 45 of file Gme/ScrollZoomView.h.
BOOL CScrollZoomView::GetTrueClientSize | ( | CSize & | size, |
CSize & | sizeSb | ||
) | [protected] |
BOOL CScrollZoomView::GetTrueClientSize | ( | CSize & | size, |
CSize & | sizeSb | ||
) | [protected] |
Definition at line 568 of file Gme/ScrollZoomView.cpp.
void CScrollZoomView::notifyPanning | ( | CPoint | pt | ) |
void CScrollZoomView::notifyPanning | ( | CPoint | pt | ) |
Definition at line 356 of file Gme/ScrollZoomView.cpp.
virtual void CScrollZoomView::OnDraw | ( | CDC * | pDC | ) | [protected, pure virtual] |
Implemented in CGMEView, and CGMEViewDlg.
virtual void CScrollZoomView::OnDraw | ( | CDC * | pDC | ) | [protected, pure virtual] |
Implemented in CGMEView, and CGMEViewDlg.
afx_msg void CScrollZoomView::OnHScroll | ( | UINT | nSBCode, |
UINT | nPos, | ||
CScrollBar * | pScrollBar | ||
) |
void CScrollZoomView::OnHScroll | ( | UINT | nSBCode, |
UINT | nPos, | ||
CScrollBar * | pScrollBar | ||
) |
Definition at line 841 of file Gme/ScrollZoomView.cpp.
afx_msg BOOL CScrollZoomView::OnMouseWheel | ( | UINT | fFlags, |
short | zDelta, | ||
CPoint | point | ||
) |
Reimplemented in CGMEView.
BOOL CScrollZoomView::OnMouseWheel | ( | UINT | fFlags, |
short | zDelta, | ||
CPoint | point | ||
) |
Reimplemented in CGMEView.
Definition at line 890 of file Gme/ScrollZoomView.cpp.
virtual void CScrollZoomView::OnPrepareDC | ( | CDC * | pDC, |
CPrintInfo * | pInfo = NULL |
||
) | [virtual] |
Reimplemented in CGMEView.
void CScrollZoomView::OnPrepareDC | ( | CDC * | pDC, |
CPrintInfo * | pInfo = NULL |
||
) | [virtual] |
Reimplemented in CGMEView.
Definition at line 83 of file Gme/ScrollZoomView.cpp.
virtual BOOL CScrollZoomView::OnScroll | ( | UINT | nScrollCode, |
UINT | nPos, | ||
BOOL | bDoScroll = TRUE |
||
) | [virtual] |
BOOL CScrollZoomView::OnScroll | ( | UINT | nScrollCode, |
UINT | nPos, | ||
BOOL | bDoScroll = TRUE |
||
) | [virtual] |
Definition at line 976 of file Gme/ScrollZoomView.cpp.
virtual BOOL CScrollZoomView::OnScrollBy | ( | CSize | sizeScroll, |
BOOL | bDoScroll = TRUE |
||
) | [virtual] |
Reimplemented in CGMEView.
BOOL CScrollZoomView::OnScrollBy | ( | CSize | sizeScroll, |
BOOL | bDoScroll = TRUE |
||
) | [virtual] |
Reimplemented in CGMEView.
Definition at line 1043 of file Gme/ScrollZoomView.cpp.
afx_msg void CScrollZoomView::OnSize | ( | UINT | nType, |
int | cx, | ||
int | cy | ||
) |
Reimplemented in CGMEView, and CGMEViewDlg.
void CScrollZoomView::OnSize | ( | UINT | nType, |
int | cx, | ||
int | cy | ||
) |
Reimplemented in CGMEView, and CGMEViewDlg.
Definition at line 483 of file Gme/ScrollZoomView.cpp.
afx_msg void CScrollZoomView::OnVScroll | ( | UINT | nSBCode, |
UINT | nPos, | ||
CScrollBar * | pScrollBar | ||
) |
void CScrollZoomView::OnVScroll | ( | UINT | nSBCode, |
UINT | nPos, | ||
CScrollBar * | pScrollBar | ||
) |
Definition at line 865 of file Gme/ScrollZoomView.cpp.
void CScrollZoomView::ResizeParentToFit | ( | BOOL | bShrinkOnly = TRUE | ) |
void CScrollZoomView::ResizeParentToFit | ( | BOOL | bShrinkOnly = TRUE | ) |
Definition at line 432 of file Gme/ScrollZoomView.cpp.
void CScrollZoomView::ScrollToDevicePosition | ( | POINT | ptDev | ) | [protected] |
void CScrollZoomView::ScrollToDevicePosition | ( | POINT | ptDev | ) | [protected] |
Definition at line 377 of file Gme/ScrollZoomView.cpp.
void CScrollZoomView::ScrollToPosition | ( | POINT | pt | ) |
void CScrollZoomView::ScrollToPosition | ( | POINT | pt | ) |
Definition at line 276 of file Gme/ScrollZoomView.cpp.
void CScrollZoomView::SetScaleToFitSize | ( | SIZE | sizeTotal | ) |
void CScrollZoomView::SetScaleToFitSize | ( | SIZE | sizeTotal | ) |
Definition at line 150 of file Gme/ScrollZoomView.cpp.
void CScrollZoomView::SetScrollSizes | ( | int | nMapMode, |
SIZE | sizeTotal, | ||
int | scalePercent, | ||
const SIZE & | sizePage = sizeDefault , |
||
const SIZE & | sizeLine = sizeDefault |
||
) |
void CScrollZoomView::SetScrollSizes | ( | int | nMapMode, |
SIZE | sizeTotal, | ||
int | scalePercent, | ||
const SIZE & | sizePage = sizeDefault , |
||
const SIZE & | sizeLine = sizeDefault |
||
) |
Definition at line 186 of file Gme/ScrollZoomView.cpp.
void CScrollZoomView::UpdateBars | ( | ) | [protected] |
void CScrollZoomView::UpdateBars | ( | ) | [protected] |
GetScrollRange(SB_HORZ, &pxMin, &pxMax); // pxMax == 100 after setting it 0 - framework error
Definition at line 646 of file Gme/ScrollZoomView.cpp.
bool CScrollZoomView::bScrollLinesRequested = false [static, protected] |
Definition at line 28 of file Gme/ScrollZoomView.h.
BOOL CScrollZoomView::m_bCenter [protected] |
Definition at line 74 of file Gme/ScrollZoomView.h.
BOOL CScrollZoomView::m_bInsideUpdate [protected] |
Definition at line 75 of file Gme/ScrollZoomView.h.
CSize CScrollZoomView::m_lineDev [protected] |
Definition at line 71 of file Gme/ScrollZoomView.h.
int CScrollZoomView::m_nMapMode [protected] |
Definition at line 67 of file Gme/ScrollZoomView.h.
bool CScrollZoomView::m_noHscroll [protected] |
Definition at line 64 of file Gme/ScrollZoomView.h.
bool CScrollZoomView::m_noVscroll [protected] |
Definition at line 65 of file Gme/ScrollZoomView.h.
CSize CScrollZoomView::m_pageDev [protected] |
Definition at line 70 of file Gme/ScrollZoomView.h.
int CScrollZoomView::m_scalePercent [protected] |
Definition at line 72 of file Gme/ScrollZoomView.h.
CSize CScrollZoomView::m_totalDev [protected] |
Definition at line 69 of file Gme/ScrollZoomView.h.
CSize CScrollZoomView::m_totalLog [protected] |
Definition at line 68 of file Gme/ScrollZoomView.h.
CPoint CScrollZoomView::m_zoomP [protected] |
Definition at line 63 of file Gme/ScrollZoomView.h.
bool CScrollZoomView::m_zoomScroll [protected] |
Definition at line 62 of file Gme/ScrollZoomView.h.
static AFX_DATA const SIZE CScrollZoomView::sizeDefault = {0,0} [static] |
Definition at line 32 of file Gme/ScrollZoomView.h.
UINT CScrollZoomView::uCachedScrollLines = 3 [static, protected] |
Definition at line 27 of file Gme/ScrollZoomView.h.