www.pudn.com > 《MFC Windows程序设计(第二版)》.rar > Accel.h, change:1997-10-21,size:1000b


#define LINESIZE 8 
 
class CMyApp : public CWinApp 
{ 
public: 
    virtual BOOL InitInstance (); 
}; 
 
class CMainWindow : public CFrameWnd 
{ 
protected: 
    int m_nCellWidth;   // Cell width in pixels 
    int m_nCellHeight;  // Cell height in pixels 
    int m_nRibbonWidth; // Ribbon width in pixels 
    int m_nViewWidth;   // Workspace width in pixels 
    int m_nViewHeight;  // Workspace height in pixels 
    int m_nHScrollPos;  // Horizontal scroll position 
    int m_nVScrollPos;  // Vertical scroll position 
    int m_nHPageSize;   // Horizontal page size 
    int m_nVPageSize;   // Vertical page size 
 
public: 
    CMainWindow (); 
 
protected: 
    afx_msg void OnPaint (); 
    afx_msg int OnCreate (LPCREATESTRUCT lpCreateStruct); 
    afx_msg void OnSize (UINT nType, int cx, int cy); 
    afx_msg void OnHScroll (UINT nCode, UINT nPos, CScrollBar* pScrollBar); 
    afx_msg void OnVScroll (UINT nCode, UINT nPos, CScrollBar* pScrollBar); 
 
    DECLARE_MESSAGE_MAP () 
};