|
// Filename: ScrollDlg.h
// S.Chan, 03 Jul 2005
#ifndef SCROLL_DLG_INCLUDED
#define SCROLL_DLG_INCLUDED
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// Forward class declarations.
class CScrollHelper;
// CScrollDlg is a resizable, scrollable dialog that uses CScrollHelper.
class CScrollDlg : public CDialog
{
public:
CScrollDlg(CWnd* pParent = NULL);
virtual ~CScrollDlg();
// Dialog data.
//{{AFX_DATA(CScrollDlg)
//}}AFX_DATA
protected:
virtual void PostNcDestroy();
// ClassWizard generated virtual function overrides.
//{{AFX_VIRTUAL(CScrollDlg)
virtual void DoDataExchange(CDataExchange* pDX);
virtual BOOL OnInitDialog();
virtual void OnOK();
virtual void OnCancel();
//}}AFX_VIRTUAL
// Generated message map functions.
//{{AFX_MSG(CScrollDlg)
afx_msg int OnMouseActivate(CWnd* pDesktopWnd, UINT nHitTest, UINT message);
afx_msg void OnPaint();
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 nFlags, short zDelta, CPoint pt);
afx_msg void OnSize(UINT nType, int cx, int cy);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
private:
void DisplayScrollInfo();
void DisplayScrollPos();
CScrollHelper* m_scrollHelper;
bool m_isInit;
CListBox m_scrollInfoLB;
};
#endif // SCROLL_DLG_INCLUDED
// END
|
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.
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.