Click here to Skip to main content
15,887,822 members
Articles / Desktop Programming / MFC

A reminder tool for .dan.g's ToDoList

Rate me:
Please Sign up or sign in to vote.
3.60/5 (14 votes)
25 Feb 2004 152.9K   3.4K   61  
A simple reminder tool to remind you of your overdue tasks in ToDoList throughout the day
#if !defined(AFX_TODOLISTREMDLG_H__9BFD3D1D_8220_45E4_9111_00D30342C400__INCLUDED_)
#define AFX_TODOLISTREMDLG_H__9BFD3D1D_8220_45E4_9111_00D30342C400__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// ToDoListRemDlg.h : header file
//
#include "Task.h"
#include "TasksListCtrl.h"
/////////////////////////////////////////////////////////////////////////////
// CToDoListRemDlg dialog


class CToDoListRemDlg : public CDialog
{
// Construction
public:
	BOOL HasTasks();
	void InitDlg(CString caption);
	CToDoListRemDlg(CWnd* pParent = NULL);   // standard constructor
	virtual ~CToDoListRemDlg();

	void addRemItems(vector<CTask> tasks);
// Dialog Data
	//{{AFX_DATA(CToDoListRemDlg)
	enum { IDD = IDD_REMINDERDIALOG };
	CTasksListCtrl	m_RemList;
	//}}AFX_DATA


// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CToDoListRemDlg)
	public:
	virtual int DoModal();
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:

	// Generated message map functions
	//{{AFX_MSG(CToDoListRemDlg)
	virtual void OnOK();
	virtual BOOL OnInitDialog();
	afx_msg void OnDestroy();
	afx_msg void OnItemclickReminderlist(NMHDR* pNMHDR, LRESULT* pResult);
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()

	vector<CTask> m_Tasks;
private:
	CString m_Caption;
};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_TODOLISTREMDLG_H__9BFD3D1D_8220_45E4_9111_00D30342C400__INCLUDED_)

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


Written By
Team Leader www.unitronics.com
Israel Israel
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions