index.cpp

来自「浏览所有的PCI设备」· C++ 代码 · 共 77 行

CPP
77
字号
// Index.cpp : implementation file
//

#include "stdafx.h"
#include "PCI Explorer.h"
#include "pci.h"
#include "pciScanIoctl.h"

#include "NumericEdit.h"
#include "IDCombo.h"
#include "DataDisplay.h"
#include "pcidata.h"

#include "Index.h"

#include "codes.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// CIndex property page

IMPLEMENT_DYNCREATE(CIndex, CPropertyPage)

CIndex::CIndex() : CPropertyPage(CIndex::IDD)
    {
     //{{AFX_DATA_INIT(CIndex)
     // NOTE: the ClassWizard will add member initialization here
     //}}AFX_DATA_INIT
     CString s;
     s.LoadString(IDS_INDEX);

     TCHAR * title = new TCHAR[s.GetLength() + 1];
     lstrcpy(title, s);

     m_psp.pszTitle = title;
     m_psp.dwFlags |= PSP_USETITLE;
}

CIndex::~CIndex()
{
}

void CIndex::DoDataExchange(CDataExchange* pDX)
{
	CPropertyPage::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CIndex)
	DDX_Control(pDX, IDC_GOTO, c_Goto);
	DDX_Control(pDX, IDC_INDEX, c_Index);
	//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(CIndex, CPropertyPage)
	//{{AFX_MSG_MAP(CIndex)
	ON_BN_CLICKED(IDC_GOTO, OnGoto)
	ON_NOTIFY(TVN_SELCHANGED, IDC_INDEX, OnSelchangedIndex)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CIndex message handlers

/****************************************************************************
*                              CIndex::addVendor
* Inputs:
*       CString & shortVendor
*	CString & longVendor
*	WORD VendorID
* Result: HTREEITEM
*       The vendor item
* Effect: 
*       

⌨️ 快捷键说明

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