Index.cpp
资源名称:pciexp.zip [点击查看]
上传用户:zhuqijet
上传日期:2007-01-04
资源大小:138k
文件大小:7k
源码类别:
驱动编程
开发平台:
Visual C++
- // 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:
- *