?? mygridlist.h
字號:
#if !defined(AFX_MYGRIDLIST_H__6E8B2D4F_8079_11D4_93C3_0080C8ECCBE9__INCLUDED_)
#define AFX_MYGRIDLIST_H__6E8B2D4F_8079_11D4_93C3_0080C8ECCBE9__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// MyGridList.h : header file
//
/////////////////////////////////////////////////////////////////////////////
// CMyGridList window
class CMyGridList : public CListCtrl
{
// Construction
public:
CMyGridList();
// Attributes
public:
CString m_strSelect;
int m_nItem; //記錄選中的行號
int m_iCloumn;//列表控件的列數
// Operations
public:
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CMyGridList)
afx_msg void OnDrawItem(int nIDCtl, LPDRAWITEMSTRUCT lpDrawItemStruct);
//}}AFX_VIRTUAL
// Implementation
public:
virtual ~CMyGridList();
void SetColumn(int NUM);//設置列表控件的列數
void AddOne(); //插入一行記錄
// Generated message map functions
protected:
//{{AFX_MSG(CMyGridList)
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_MYGRIDLIST_H__6E8B2D4F_8079_11D4_93C3_0080C8ECCBE9__INCLUDED_)
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -