GME  13
PartBrowserPaneFrame.h
Go to the documentation of this file.
00001 #if !defined(AFX_PARTBROWSERPANEFRAME_H__B9443F66_C8F4_11D3_91EB_00104B98EAD9__INCLUDED_)
00002 #define AFX_PARTBROWSERPANEFRAME_H__B9443F66_C8F4_11D3_91EB_00104B98EAD9__INCLUDED_
00003 
00004 #if _MSC_VER > 1000
00005 #pragma once
00006 #endif // _MSC_VER > 1000
00007 // PartBrowserPaneFrame.h : header file
00008 //
00009 
00010 #include "StdAfx.h"
00011 #include "PartBrowserPane.h"
00012 #include "Resource.h"
00013 
00015 // CPartBrowserPaneFrame dialog
00016 
00017 class CPartBrowserPaneFrame : public CDialog
00018 {
00019 // Construction
00020 public:
00021         CPartBrowserPaneFrame(CWnd* pParent = NULL);   // standard constructor
00022 
00023 // Dialog Data
00024         //{{AFX_DATA(CPartBrowserPaneFrame)
00025         enum { IDD = IDD_PARTBROWSERFRAME_DIALOG };
00026                 // NOTE: the ClassWizard will add data members here
00027         //}}AFX_DATA
00028 
00029 
00030 // Overrides
00031         // ClassWizard generated virtual function overrides
00032         //{{AFX_VIRTUAL(CPartBrowserPaneFrame)
00033         protected:
00034         virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
00035         //}}AFX_VIRTUAL
00036 
00037 // Implementation
00038 protected:
00039         CPartBrowserPane pane;
00040 
00041         int logicalHeight;
00042         int pageHeight;
00043         int scrollPos;
00044         const int vScrollWidth;
00045         const int lineSize;
00046         const int pageSize;
00047 
00048 public:
00049         void Resize(RECT r);
00050         void SetScrollBar();
00051 
00052         // Get/Set methods
00053         CPartBrowserPane&       GetPane(void);
00054         void                            SetLogicalHeight(int logHeight);
00055         void                            SetPageHeight(int pgHeight);
00056         int                                     GetScrollPosition(void);
00057         void                            SetScrollPosition(int scrollPosition);
00058 
00059 protected:
00060 
00061         // Generated message map functions
00062         //{{AFX_MSG(CPartBrowserPaneFrame)
00063         virtual BOOL OnInitDialog();
00064         afx_msg void OnVScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar);
00065         afx_msg BOOL OnMouseWheel(UINT fFlags, short zDelta, CPoint point);
00066         //}}AFX_MSG
00067         DECLARE_MESSAGE_MAP()
00068 };
00069 
00070 //{{AFX_INSERT_LOCATION}}
00071 // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
00072 
00073 #endif // !defined(AFX_PARTBROWSERPANEFRAME_H__B9443F66_C8F4_11D3_91EB_00104B98EAD9__INCLUDED_)