-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathEditTaskListCtrl.h
More file actions
79 lines (60 loc) · 1.77 KB
/
EditTaskListCtrl.h
File metadata and controls
79 lines (60 loc) · 1.77 KB
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
#pragma once
#include "ScopeLock.h"
#include <map>
class CFileEditDialog;
class CMediaPlayerDialog;
class CEditTask;
class CTaskManager;
typedef std::map<UInt16b, BYTE> TASK_USE_DICT;
// CEditTaskListCtrl
class CEditTaskListCtrl : public CListCtrl
{
DECLARE_DYNAMIC(CEditTaskListCtrl)
private:
CCS m_cs;
TASK_USE_DICT m_taskUseDict;
UInt16b m_nTaskID;
// CString m_strTaskName;
// CString m_strTaskAlias;
CString m_strDir;
int m_nCurPlayItem;
private:
BOOL RemoveMp4();
BOOL ClearAllMp4();
BOOL Mp4PrevView();
BOOL ResumeEditTask();
BOOL PauseEditTask();
bool IsTimerShaftDraw(UInt16b nTaskID);
CFileEditDialog* GetFileEditDlg();
CMediaPlayerDialog* GetMediaPlayerDlg();
void _LoadAllTask(/*const*/ CTaskManager* pManager);
public:
CEditTaskListCtrl();
virtual ~CEditTaskListCtrl();
UInt16b GetTaskId() const;
const CString& GetTaskSourceName(int nTaskId);
const CString& GetTaskAlias(int nTaskId);
const CString& GetTaskDir(int nTaskId);
const CString& GetTaskDir() const;
void UpdataTaskStatus(UInt16b nTaskId, UInt16b nTaskStatus);
void SetTaskDir(const CString& strDir)
{
m_strDir = strDir;
}
void AddTask(const CEditTask* pTask);
protected:
DECLARE_MESSAGE_MAP()
public:
void OnMP4Operation(UINT nID);
afx_msg void OnNMClick(NMHDR *pNMHDR, LRESULT *pResult);
afx_msg void OnNMRClick(NMHDR *pNMHDR, LRESULT *pResult);
afx_msg LRESULT OnAddMp4(WPARAM wParam, LPARAM lParam);
BOOL DeleteTask(int nTaskId);
private:
HANDLE m_hTimeShaftThd;
CFileEditDialog* m_pEditDlg;
static unsigned int __stdcall DrawThread(void* pParam);
void Main(CFileEditDialog* pDlg);
public:
afx_msg void OnNMCustomdraw(NMHDR *pNMHDR, LRESULT *pResult);
};