-
Notifications
You must be signed in to change notification settings - Fork 2
/
DS H_CListCtrl.h
44 lines (32 loc) · 990 Bytes
/
DS H_CListCtrl.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#pragma once
#ifndef _DS_H_CLISTCTRL_H_
#define _DS_H_CLISTCTRL_H_
#define ID_MENU_PAUSE 10001
#define ID_MENU_RESUME 10002
#define ID_MENU_DELETE 10003
#include "afxwin.h"
class CDSHListCtrl : public CListCtrl
{
public:
DECLARE_MESSAGE_MAP()
public:
CDSHListCtrl(void);
~CDSHListCtrl(void);
void MakeBitmapFromICO(CBitmap* pBitMapObj, int ICO_ID);
CMenu m_Menu;
ULONG_PTR m_GDIplusToken;
CBitmap m_BitmapPause;
CBitmap m_BitmapResume;
CBitmap m_BitmapDelete;
afx_msg void OnNMRClick(NMHDR *pNMHDR, LRESULT *pResult);
BOOL DeleteItem(_In_ int nItem);
int GetItemCount() const;
int InsertItem(_In_ const LVITEM* pItem);
BOOL SetItem(_In_ const LVITEM* pItem);
BOOL DeleteAllItems();
int FindItem(_In_ LVFINDINFO* pFindInfo, _In_ int nStart = -1) const;
CString GetItemText(int nItem, int nSubItem) const;
BOOL SetItemText(int nItem, int nSubItem, LPCTSTR lpszText);
BOOL GetItem(_Out_ LVITEM* pItem) const;
};
#endif