graphpage.h

来自「Synaptics触摸板应用开发包(SDK)」· C头文件 代码 · 共 84 行

H
84
字号
#if !defined(AFX_GRAPHPAGE_H__68251035_2B47_469D_AF30_A0F3866C6B40__INCLUDED_)
#define AFX_GRAPHPAGE_H__68251035_2B47_469D_AF30_A0F3866C6B40__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// GraphPage.h : header file
//

#include "SynKit.h"
#include "ChildView.h"

/////////////////////////////////////////////////////////////////////////////
// CGraphPage dialog

class CGraphPage : public CPropertyPage
{
  DECLARE_DYNCREATE(CGraphPage)

// Construction
public:
  CGraphPage();
  ~CGraphPage();

// Dialog Data
  //{{AFX_DATA(CGraphPage)
  enum { IDD = IDD_GRAPH };
  int   m_iGrid;
  int   m_ixMax;
  int   m_ixMin;
  int   m_iyMax;
  int   m_iyMin;
  int   m_izMax;
  int   m_izMin;
  //}}AFX_DATA


// Overrides
  // ClassWizard generate virtual function overrides
  //{{AFX_VIRTUAL(CGraphPage)
  public:
  virtual void OnOK();
  protected:
  virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
  //}}AFX_VIRTUAL

// Implementation
protected:
  // Generated message map functions
  //{{AFX_MSG(CGraphPage)
  afx_msg void OnGraphtypeRaw();
  afx_msg void OnGraphtypeAbsolute();
  afx_msg void OnGraphtypeRelative();
  afx_msg void OnGraphtypeMickeys();
  virtual BOOL OnInitDialog();
  //}}AFX_MSG
  DECLARE_MESSAGE_MAP()

public:
  CChildView *m_pView;

  CChildView::eGraphSource m_eGraphSource;

  void SetView(CChildView *pView)
  {
    m_pView = pView;

    m_eGraphSource = m_pView->m_eGraphSource;

    m_ixMin = m_pView->Contexts[0].m_Bottom;
    m_ixMax = m_pView->Contexts[0].m_Top;
    m_iyMin = m_pView->Contexts[1].m_Bottom;
    m_iyMax = m_pView->Contexts[1].m_Top;
    m_izMin = m_pView->Contexts[2].m_Bottom;
    m_izMax = m_pView->Contexts[2].m_Top;
    m_iGrid = m_pView->Contexts[0].m_divisions;
  }
};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_GRAPHPAGE_H__68251035_2B47_469D_AF30_A0F3866C6B40__INCLUDED_)

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?