OAMPAGERCTRL.H
上传用户:lvjun8202
上传日期:2013-04-30
资源大小:797k
文件大小:3k
- #if !defined(AFX_OAMPAGERCTRL_H__8C5341A1_0D83_11D3_BAB1_12345600558E__INCLUDED_)
- #define AFX_OAMPAGERCTRL_H__8C5341A1_0D83_11D3_BAB1_12345600558E__INCLUDED_
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
- // OAMPagerCtrl.h : header file
- //
- /////////////////////////////////////////////////////////////////////////////
- // COAMPagerCtrl window
- class COAMPagerCtrl : public CWnd
- {
- // Construction
- public:
- COAMPagerCtrl();
- virtual ~COAMPagerCtrl();
- // Attributes
- public:
- protected:
- int m_nWidth;
- int m_nHeight;
- // Operations
- public:
- void SetScrollArea (int nWidth, int nHeight)
- { m_nWidth = nWidth; m_nHeight = nHeight; }
- // CPagerCtrl class wrappers.
- void SetChild(HWND hwndChild) { ASSERT(::IsWindow(m_hWnd));
- Pager_SetChild(m_hWnd, hwndChild); }
- void RecalcSize() { ASSERT(::IsWindow(m_hWnd));
- Pager_RecalcSize(m_hWnd); }
- void ForwardMouse(BOOL bForward) { ASSERT(::IsWindow(m_hWnd));
- Pager_ForwardMouse(m_hWnd, bForward); }
- COLORREF SetBkColor(COLORREF clr) { ASSERT(::IsWindow(m_hWnd));
- return Pager_SetBkColor(m_hWnd, clr); }
- COLORREF GetBkColor() { ASSERT(::IsWindow(m_hWnd));
- return Pager_GetBkColor(m_hWnd); }
- int SetBorder(int iBorder) { ASSERT(::IsWindow(m_hWnd));
- return Pager_SetBorder(m_hWnd, iBorder); }
- int GetBorder() { ASSERT(::IsWindow(m_hWnd));
- return Pager_GetBorder(m_hWnd); }
- int SetPos(int iPos) { ASSERT(::IsWindow(m_hWnd));
- return Pager_SetPos(m_hWnd, iPos); }
- int GetPos() { ASSERT(::IsWindow(m_hWnd));
- return Pager_GetPos(m_hWnd); }
- int SetButtonSize(int iSize) { ASSERT(::IsWindow(m_hWnd));
- return Pager_SetButtonSize(m_hWnd, iSize); }
- int GetButtonSize() { ASSERT(::IsWindow(m_hWnd));
- return Pager_GetButtonSize(m_hWnd); }
- DWORD GetButtonState(int iButton) { ASSERT(::IsWindow(m_hWnd));
- return Pager_GetButtonState(m_hWnd, iButton); }
- void GetDropTarget(IDropTarget **ppdt) { ASSERT(::IsWindow(m_hWnd));
- Pager_GetDropTarget(m_hWnd, ppdt); }
- // Overrides
- // ClassWizard generated virtual function overrides
- //{{AFX_VIRTUAL(COAMPagerCtrl)
- public:
- virtual BOOL Create(DWORD dwStyle, const RECT& rect, CWnd* pParentWnd, UINT nID);
- //}}AFX_VIRTUAL
- // Implementation
- public:
- // Generated message map functions
- protected:
- //{{AFX_MSG(COAMPagerCtrl)
- virtual BOOL OnPagerScroll(NMPGSCROLL* pNMPGScroll, LRESULT * pResult);
- virtual BOOL OnPagerCalcSize(NMPGCALCSIZE * pNMPGCalcSize, LRESULT* pResult);
- //}}AFX_MSG
- DECLARE_MESSAGE_MAP()
- };
- /////////////////////////////////////////////////////////////////////////////
- //{{AFX_INSERT_LOCATION}}
- // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
- #endif // !defined(AFX_OAMPAGERCTRL_H__8C5341A1_0D83_11D3_BAB1_12345600558E__INCLUDED_)