Click here to Skip to main content
Click here to Skip to main content
Add your own
alternative version

A reminder tool for .dan.g's ToDoList

, 25 Feb 2004
A simple reminder tool to remind you of your overdue tasks in ToDoList throughout the day
tdlremindertool_demo.zip
zlib.dll
iconv.dll
libxml2.dll
TDLReminderTool.exe
Reminder.wav
tdlremindertool_src.zip
Projects
TDLReminderTool
TDLReminderTool.dsw
TDLReminderTool.clw
TDLReminderTool.dsp
res
TDLReminderTool.ico
Reminder.wav
// TDLReminderToolDlg.h : header file
//

#if !defined(AFX_TDLREMINDERTOOLDLG_H__81401DCC_772D_4CBE_83AA_CF716587F884__INCLUDED_)
#define AFX_TDLREMINDERTOOLDLG_H__81401DCC_772D_4CBE_83AA_CF716587F884__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

const UINT WM_TASKBARCREATED = RegisterWindowMessage(TEXT("TaskbarCreated"));
const CString MYNOTIFYICON = "MyTDLNotifyIcon";
const UINT MYWM_NOTIFYICON = RegisterWindowMessage(MYNOTIFYICON);

#include "TODOList.h"
#include "ToDoListRemDlg.h"

/////////////////////////////////////////////////////////////////////////////
// CTDLReminderToolDlg dialog

class CTDLReminderToolDlg : public CDialog
{
// Construction
public:
	void SetTaskList(CString taskList);
	CTDLReminderToolDlg(CWnd* pParent = NULL);	// standard constructor

// Dialog Data
	//{{AFX_DATA(CTDLReminderToolDlg)
	enum { IDD = IDD_TDLREMINDERTOOL_DIALOG };
	CComboBox	m_updFreqCombo;
	CComboBox	m_freqCombo;
	UINT	m_remFrequency;
	BOOL	m_StartStop;
	UINT	m_updRemFrequency;
	BOOL	m_bPlayAudio;
	CString	m_audioFilePath;
	//}}AFX_DATA

	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CTDLReminderToolDlg)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:
	HICON m_hIcon;

	// Generated message map functions
	//{{AFX_MSG(CTDLReminderToolDlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	afx_msg void OnStartstop();
	afx_msg void OnOk();
	virtual void OnCancel();
	afx_msg void OnTimer(UINT nIDEvent);
	afx_msg void OnDestroy();
	afx_msg void OnSetreminder();
	afx_msg void OnExittdl();
	afx_msg void OnUpdnow();
	afx_msg void OnBrowseforaudio();
	afx_msg void OnChangeAudiofilepath();
	afx_msg void OnPlayaudio();
	//}}AFX_MSG
	afx_msg LRESULT OnTaskBarCreated(WPARAM wParam,LPARAM lParam);
	afx_msg LRESULT OnMyNotifyIcon(WPARAM wParam,LPARAM lParam);
	DECLARE_MESSAGE_MAP()

	void TrayAddIcon(DWORD dwMessage);
	HMENU m_hTrayMenu;
private:
	void extractOverDueTasks(vector<CTask>& overdue,CTask root);
	BOOL SetupRemindersList();
	CString m_taskListFileName;
	int m_freqType;
	int m_updType;
	CTODOList* m_pTodoList;
	CToDoListRemDlg m_RemDlg;
};

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

#endif // !defined(AFX_TDLREMINDERTOOLDLG_H__81401DCC_772D_4CBE_83AA_CF716587F884__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

Share

About the Author

Alberto Bar-Noy
Team Leader www.unitronics.com
Israel Israel
No Biography provided

| Advertise | Privacy | Terms of Use | Mobile
Web04 | 2.8.150129.1 | Last Updated 26 Feb 2004
Article Copyright 2004 by Alberto Bar-Noy
Everything else Copyright © CodeProject, 1999-2015
Layout: fixed | fluid