SHEETSWND.H
资源名称:SNMP范例源代码.zip [点击查看]
上传用户:shgx688
上传日期:2009-12-27
资源大小:855k
文件大小:3k
源码类别:
SNMP编程
开发平台:
MultiPlatform
- /************************************
- REVISION LOG ENTRY
- Revision By: Mihai Filimon
- Revised on 7/19/98 11:33:04 AM
- Comments: SheetsWnd.h : header file, CSheetsWnd window
- ************************************/
- #if !defined(AFX_SHEETSWND_H__67869EBF_1ED0_11D2_999A_00400561FB65__INCLUDED_)
- #define AFX_SHEETSWND_H__67869EBF_1ED0_11D2_999A_00400561FB65__INCLUDED_
- #if _MSC_VER >= 1000
- #pragma once
- #endif // _MSC_VER >= 1000
- #define IDTHIS 0x03112
- #define IDBTNS 0
- #define SM_PAGECHANGING WM_USER + 100
- #define SM_PAGECHANGED SM_PAGECHANGING + 1
- class CSheetsWnd : public CWnd
- {
- // Construction
- public:
- CSheetsWnd();
- // WPARAM contain pOldView activate, LPARAM pView that will be activated
- static UINT GetMessagePageChanging() { return SM_PAGECHANGING;};
- // WPARAM contain pView activate, LPARAM notused
- static UINT GetMessagePageChanged() { return SM_PAGECHANGED;};
- // Attributes
- public:
- // Operations
- public:
- // Overrides
- // ClassWizard generated virtual function overrides
- //{{AFX_VIRTUAL(CSheetsWnd)
- //}}AFX_VIRTUAL
- // Implementation
- public:
- virtual CBrush * GetPageBkBrush(int nPage);
- virtual CBrush * GetPageBkBrush(CWnd * pView);
- virtual void EnsureVisible(CWnd* pView);
- virtual void JumpToPage(TCHAR tChar);
- virtual CRect GetPageRect(CWnd* pView);
- WNDPROC GetWindowProc();
- static void ResizeStatical(HWND hWndParent);
- static void RestoreWndProc(HWND hWndParent);
- virtual CRect GetDrawRect() const;
- static CSheetsWnd* GetWndSheet(HWND hWndParent);
- virtual BOOL Attach(CWnd * pWndParent, COLORREF rgbBackground = GetSysColor(COLOR_3DFACE));
- virtual ~CSheetsWnd();
- virtual void SetActiveView(CWnd* pView);
- virtual CWnd* GetActiveView();
- virtual CString GetViewTitle(CWnd* pView);
- virtual CWnd* GetNextView();
- virtual CWnd* GetFirstView();
- // Generated message map functions
- protected:
- CRect m_rectMoveBar;
- virtual CRect DrawMoveBar(CDC* pDC, int x);
- virtual BOOL IsEqual(CString s, CString d);
- virtual CRect EraseExclude();
- virtual CWnd* GetViewFromPoint(CPoint point);
- virtual void Resize(HWND hWndParent);
- virtual void Draw(CDC* pDC);
- virtual CRect GetRect(CWnd* pWndParent);
- CRect GetRect(HWND hWndParent);
- //{{AFX_MSG(CSheetsWnd)
- afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
- afx_msg BOOL OnEraseBkgnd(CDC* pDC);
- afx_msg void OnHScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar);
- afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
- afx_msg void OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags);
- afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
- afx_msg void OnMouseMove(UINT nFlags, CPoint point);
- afx_msg BOOL OnSetCursor(CWnd* pWnd, UINT nHitTest, UINT message);
- //}}AFX_MSG
- DECLARE_MESSAGE_MAP()
- CRect m_DrawRect;
- CScrollBar m_btns;
- WNDPROC m_wndProcParent;
- private:
- void Move(CPoint point);
- CPoint* m_pRollPoint;
- int m_nDisplacement;
- int m_nHorzScroll, m_nMaxHorzScroll;
- CFont m_font;
- CWnd* m_pViewFind;
- CBrush m_brBackground;
- };
- /////////////////////////////////////////////////////////////////////////////
- //{{AFX_INSERT_LOCATION}}
- // Microsoft Developer Studio will insert additional declarations immediately before the previous line.
- #endif // !defined(AFX_SHEETSWND_H__67869EBF_1ED0_11D2_999A_00400561FB65__INCLUDED_)