📄 cmdtabctrl.h
字号:
/*----------------------------------------------------------------------------
* Copyright (c) 2001 by National Semiconductor Corporation
* National Semiconductor Corporation
* 2900 Semiconductor Drive
* Santa Clara, California 95051
*
* All rights reserved
*
*<<<-------------------------------------------------------------------------
* File Contents:
* CmdTabCtrl.h
*
* Project: USB Demo Application
* Author : Yan Nosovitsky
* Date : Dec 2001
*----------------------------------------------------------------------->>>*/
#if !defined(AFX_COMMANDTABCTRL_H__716BDFB1_0BE5_11D4_915B_0060972A7504__INCLUDED_)
#define AFX_COMMANDTABCTRL_H__716BDFB1_0BE5_11D4_915B_0060972A7504__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// CommandTabCtrl.h : header file
//
#include "controlCmdTab.h"
#include "intCmdTab.h"
#include "isoCmdTab.h"
#include "readWriteCmdTab.h"
#include "BulkCmdTab.h"
#define NUM_OF_TABS 5
#define CONTROL 0
#define BULK 1
#define INTERRUPT 2
#define ISOCHRONOUS 3
#define DIAGNOSTIC 4
/////////////////////////////////////////////////////////////////////////////
// CommandTabCtrl window
class CCmdTabCtrl : public CTabCtrl
{
// Construction
public:
CCmdTabCtrl();
CDialog *m_tabPages[NUM_OF_TABS];
int m_tabCurrent;
int m_nNumberOfPages;
controlCmdTab* m_ControlTab;
intCmdTab* m_IntTab;
isoCmdTab* m_IsoTab;
readWriteCmdTab* m_ReadWriteTab;
BulkCmdTab* m_BulkTab;
// Attributes
public:
// Operations
public:
void CommandTabCtrlInit();
void SetRectangle();
void TabSwitcher(int TabNum);
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CommandTabCtrl)
//}}AFX_VIRTUAL
// Implementation
public:
virtual ~CCmdTabCtrl();
// Generated message map functions
protected:
//{{AFX_MSG(CommandTabCtrl)
afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
afx_msg void OnKeyDown( UINT nChar, UINT nRepCnt, UINT nFlags );
// NOTE - the ClassWizard will add and remove member functions here.
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_COMMANDTABCTRL_H__716BDFB1_0BE5_11D4_915B_0060972A7504__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -