DataDisplay.h
资源名称:pciexp.zip [点击查看]
上传用户:zhuqijet
上传日期:2007-01-04
资源大小:138k
文件大小:1k
源码类别:
驱动编程
开发平台:
Visual C++
- // DataDisplay.h : header file
- //
- /////////////////////////////////////////////////////////////////////////////
- // CDataDisplay window
- class CDataDisplay : public CListBox
- {
- // Construction
- public:
- CDataDisplay();
- int AddString(DWORD value) { return CListBox::AddString((LPCTSTR)value); }
- // Attributes
- public:
- // Operations
- public:
- UINT SetFormat(UINT fmt) {UINT old = format; format = fmt; InvalidateRect(NULL); return old; }
- // Overrides
- // ClassWizard generated virtual function overrides
- //{{AFX_VIRTUAL(CDataDisplay)
- public:
- virtual void DrawItem(LPDRAWITEMSTRUCT lpDrawItemStruct);
- //}}AFX_VIRTUAL
- // Implementation
- public:
- virtual ~CDataDisplay();
- // Generated message map functions
- protected:
- int col1;
- UINT format;
- //{{AFX_MSG(CDataDisplay)
- // NOTE - the ClassWizard will add and remove member functions here.
- //}}AFX_MSG
- DECLARE_MESSAGE_MAP()
- };
- #define DISPLAY_HEX_BYTES 0
- #define DISPLAY_HEX_WORDS 1
- #define DISPLAY_HEX_DWORDS 2
- #define DISPLAY_DECIMAL_BYTES 3
- #define DISPLAY_DECIMAL_WORDS 4
- #define DISPLAY_DECIMAL_DWORDS 5
- #define DISPLAY_ANSI_CHARACTERS 6
- #define DISPLAY_UNICODE_CHARACTERS 7
- /////////////////////////////////////////////////////////////////////////////