-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTaskListDlg.h
40 lines (31 loc) · 1.01 KB
/
TaskListDlg.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
#if !defined(AFX_TASKLISTDLG_H__01E8FDB4_3A2B_4AD5_AD69_02527CFD0066__INCLUDED_)
#define AFX_TASKLISTDLG_H__01E8FDB4_3A2B_4AD5_AD69_02527CFD0066__INCLUDED_
#include "resource.h"
#include "TaskShiftDefs.h"
class CTaskListDlg : public CDialog
{
public:
CTaskListDlg(int &aiCurrentTask, TaskVector &avecTasks, CWnd* pParent = NULL);
enum { IDD = IDD_TASK_LIST_DLG };
protected:
CListCtrl m_ctrlTasks;
TaskVector &m_vecTasks;
CButton m_ctrlNewTaskBtn;
CButton m_ctrlDeleteTaskBtn;
int &m_iCurrentTask;
HBITMAP m_hbmpNew;
HBITMAP m_hbmpDelete;
protected:
virtual void DoDataExchange(CDataExchange* pDX);
void PopulateTasks();
void ResizeControls();
afx_msg BOOL OnInitDialog();
afx_msg void OnOK();
afx_msg void OnCancel();
afx_msg void OnNewTask();
afx_msg void OnDeleteTask();
afx_msg void OnSize(UINT nType, int cx, int cy);
afx_msg void OnListEndEdit(NMHDR *pNMHDR, LRESULT *pResult);
DECLARE_MESSAGE_MAP()
};
#endif // !defined(AFX_TASKLISTDLG_H__01E8FDB4_3A2B_4AD5_AD69_02527CFD0066__INCLUDED_)