📄 dlginputctrl.h
字号:
#if !defined(AFX_DLGINPUTCTRL_H__9D1CC3C5_BE41_4546_B201_34733E2EC1BF__INCLUDED_)
#define AFX_DLGINPUTCTRL_H__9D1CC3C5_BE41_4546_B201_34733E2EC1BF__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// DlgInputCtrl.h : header file
//
/////////////////////////////////////////////////////////////////////////////
// CDlgInputCtrl window
//在CDlgKqInput中使用
//自绘表格
//CListCtrl属性:OWNER DRAW FIXED
#include "DataWin\ListCtrlBase.H"
class CDlgInputCtrl : public CListCtrlBase
{
public:
// virtual int InsertColumn(int nCol, LPCTSTR lpszColumnHeading, int nFormat = LVCFMT_LEFT, int nWidth = -1, int nSubItem = -1);
// virtual BOOL SetItemText(int nItem, int nSubItem, LPCTSTR lpszText);
BOOL SetItemText(int nItem, int nSubItem, LPCTSTR lpszText);
void UpdateSubItem(int nItem, int nSubItem);
// void DrawText(int nItem, int nSubItem,
// CDC *pDC, COLORREF crText,
// COLORREF crBkgnd, CRect& rect,
// INLISTCTRLDATA *pXLCD);
// Construction
public:
CDlgInputCtrl();
CUIntArray m_caTxColor;
CUIntArray m_caBkColor;
CStringArray m_caName;
CString m_sTime;
//颜色设置
COLORREF m_cr3DFace ;
COLORREF m_cr3DHighLight ;
COLORREF m_cr3DShadow ;
COLORREF m_crBtnFace ;
COLORREF m_crBtnShadow ;
COLORREF m_crBtnText ;
COLORREF m_crGrayText ;
COLORREF m_crHighLight ;
COLORREF m_crHighLightText ;
COLORREF m_crWindow ;
COLORREF m_crWindowText ;
// Attributes
public:
// Operations
public:
virtual void DrawItem(LPDRAWITEMSTRUCT lpDrawItemStruct);
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CDlgInputCtrl)
//}}AFX_VIRTUAL
// Implementation
public:
BOOL Add(LPCSTR pName, COLORREF crTx, COLORREF crBk);
void SetItemColor(UINT nItem);
BOOL GetColorEx(LPCSTR pName, COLORREF &rcColor, COLORREF &rcBackground);
CRect GetCellRect(int nItem, int nColumn, BOOL outside);
virtual ~CDlgInputCtrl();
BOOL IsHighlight(int iItem);
// Generated message map functions
protected:
//{{AFX_MSG(CDlgInputCtrl)
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_DLGINPUTCTRL_H__9D1CC3C5_BE41_4546_B201_34733E2EC1BF__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -