celistctrlex.h
来自「一个EVC开发的适用于WINCE平台的高级列表控件。实现了列表项的上下移动。」· C头文件 代码 · 共 69 行
H
69 行
// CeListCtrlEx.h : header file
//
#if !defined(AFX_CELISTCTRLEX_H__3BCE6295_516B_4715_A125_E1A03E26DF40__INCLUDED_)
#define AFX_CELISTCTRLEX_H__3BCE6295_516B_4715_A125_E1A03E26DF40__INCLUDED_
#if _MSC_VER >= 1000
#pragma once
#endif // _MSC_VER >= 1000
/////////////////////////////////////////////////////////////////////////////
// CCeListCtrlEx window
class CCeListCtrlEx : public CListCtrl
{
// Construction
public:
CCeListCtrlEx();
// Attributes
public:
// Operations
public:
int GetCurSelItem() const;
BOOL SetCurSelItem(int nIndex);
BOOL MoveItem(int nOldIndex, int nNewIndex);
BOOL MoveItemUp(int nIndex);
BOOL MoveItemDown(int nIndex);
BOOL MoveItemTop(int nIndex);
BOOL MoveItemBottom(int nIndex);
protected:
int DrawTextEndEllipsis(CDC* pDC, const CString& strText, CRect& rc, UINT uFormat);
void RepaintSelectedItems();
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CCeListCtrlEx)
protected:
virtual void PreSubclassWindow();
//}}AFX_VIRTUAL
virtual void DrawItem(LPDRAWITEMSTRUCT lpDrawItemStruct);
// Implementation
public:
virtual ~CCeListCtrlEx();
// Generated message map functions
protected:
//{{AFX_MSG(CCeListCtrlEx)
afx_msg void OnSetFocus(CWnd* pOldWnd);
afx_msg void OnKillFocus(CWnd* pNewWnd);
afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
afx_msg void OnRecognizeGesture(NMHDR* pNMHDR, LRESULT* pResult);
afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
private:
void Init();
};
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_CELISTCTRLEX_H__3BCE6295_516B_4715_A125_E1A03E26DF40__INCLUDED_)
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?