|
/*************************************************************************
Class Declaration : CUGVScroll
**************************************************************************
Source file : ugvscrol.cpp
Header file : ugvscrol.h
// This software along with its related components, documentation and files ("The Libraries")
// is � 1994-2007 The Code Project (1612916 Ontario Limited) and use of The Libraries is
// governed by a software license agreement ("Agreement"). Copies of the Agreement are
// available at The Code Project (www.codeproject.com), as part of the package you downloaded
// to obtain this file, or directly from our office. For a copy of the license governing
// this software, you may contact us at legalaffairs@codeproject.com, or by calling 416-849-8900.
This class is grid's vertical scrollbar.
*************************************************************************/
#ifndef _ugvscrol_H_
#define _ugvscrol_H_
class UG_CLASS_DECL CUGVScroll : public CScrollBar
{
// Construction
public:
CUGVScroll();
// Attributes
public:
// Operations
public:
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CUGVScroll)
//}}AFX_VIRTUAL
// Implementation
public:
virtual ~CUGVScroll();
// Generated message map functions
protected:
//{{AFX_MSG(CUGVScroll)
afx_msg void OnRButtonDown(UINT nFlags, CPoint point);
afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
afx_msg LRESULT OnHelpHitTest(WPARAM wParam, LPARAM lParam);
afx_msg BOOL OnHelpInfo(HELPINFO* pHelpInfo);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
protected:
friend CUGCtrl;
CUGCtrl * m_ctrl;
CUGGridInfo * m_GI; //pointer to the grid information
double m_multiRange; //scroll bar multiplication factor
//for setting the scroll range
double m_multiPos; //multiplication factor for setting the
//top row during a thumb track
long m_lastMaxTopRow;//last max top row
int m_lastScrollMode;
int m_lastNumLockRow;
long m_trackRowPos;
public:
//internal functions
void Update();
void Moved();
void VScroll(UINT nSBCode, UINT nPos);
};
#endif // _ugvscrol_H_
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
In January 2005, David Cunningham and Chris Maunder created TheUltimateToolbox.com, a new group dedicated to the continued development, support and growth of Dundas Software’s award winning line of MFC, C++ and ActiveX control products.
Ultimate Grid for MFC, Ultimate Toolbox for MFC, and Ultimate TCP/IP have been stalwarts of C++/MFC development for a decade. Thousands of developers have used these products to speed their time to market, improve the quality of their finished products, and enhance the reliability and flexibility of their software.