⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 controlcmdtab.h

📁 国半usbn9604芯片开发办的源码
💻 H
字号:
/*----------------------------------------------------------------------------
 *  Copyright (c) 2001 by National Semiconductor Corporation
 *  National Semiconductor Corporation
 *  2900 Semiconductor Drive
 *  Santa Clara, California 95051
 *
 *  All rights reserved
 *
 *<<<-------------------------------------------------------------------------
 * File Contents:
 *	controlCmdTab.h
 *
 *  Project: USB Demo Application
 *  Author : Yan Nosovitsky
 *  Date   : Dec 2001
 *----------------------------------------------------------------------->>>*/

#if !defined(AFX_CONTROLCMDTAB_H__E257579B_0BB7_4BDB_9E82_BD86191C0BEA__INCLUDED_)
#define AFX_CONTROLCMDTAB_H__E257579B_0BB7_4BDB_9E82_BD86191C0BEA__INCLUDED_

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

#include "ControlFunc.h"
/////////////////////////////////////////////////////////////////////////////
// controlCmdTab dialog

#define REQUEST_NUM		3
#define DESC_VAL_NUM	3
#define STRING_INDEX	3

typedef enum {
	GET_CONF = 0,
	GET_DESC,
	GET_INT
} ReqType;

typedef enum {
	DEVICE	= 1,
	CONFIGURATION,
	STRING,
	INTERFACE,
	ENDPOINT
} DescriptorType;

class controlCmdTab : public CDialog
{
// Construction
public:
	controlCmdTab(CWnd* pParent = NULL);   // standard constructor
	ControlFunc *controlFunc;
	void BuildReqList();
// Dialog Data
	//{{AFX_DATA(controlCmdTab)
	enum { IDD = IDD_CONTROL_TAB };
	CTreeCtrl	m_requestTree;
	CStatic	m_descTypeStatic;
	CButton	m_goButton;
	CComboBox	m_descTypeCombo;
	CStatic	m_descIndexStatic;
	CComboBox	m_descIndexCombo;
	CComboBox	m_valueCombo;
	CListBox	m_requestList;
	CComboBox	m_requestCombo;
	CComboBox	m_lengthCombo;
	CComboBox	m_indexCombo;
	//}}AFX_DATA


// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(controlCmdTab)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	//}}AFX_VIRTUAL
	
// Implementation
protected:
	
	// Generated message map functions
	//{{AFX_MSG(controlCmdTab)
	afx_msg void OnSelendokRequestCombo();
	afx_msg void OnGoButton();
	afx_msg void OnSelendokDescIndexCombo();
	afx_msg void OnSelendokDescTypeCombo();
	afx_msg void OnSelendokIndexCombo();
	afx_msg void OnSelendokLengthCombo();
	afx_msg void OnSelendokValueCombo();
	afx_msg void OnCancel() {}
	afx_msg void OnOK() {}
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()

private:
	RequestType		curReqType;
	StandardRequest curRequest;
	WORD			curwValue;
	WORD			curwIndex;
	WORD			curwLength;
	CString			BuildString(BYTE *buffer, BYTE stringSize);
};

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

#endif // !defined(AFX_CONTROLCMDTAB_H__E257579B_0BB7_4BDB_9E82_BD86191C0BEA__INCLUDED_)

⌨️ 快捷键说明

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