Click here to Skip to main content
15,896,118 members
Articles / Programming Languages / C++

Simple Reminder Application

Rate me:
Please Sign up or sign in to vote.
3.88/5 (19 votes)
22 Sep 2006CPOL6 min read 143.7K   13.2K   33  
The article presents a simple Reminder application, using registry to store the reminders.
#ifndef __STATUS_TRAY_H__
#define __STATUS_TRAY_H__

#include<windows.h>
#include<commctrl.h>



#define ID_STATUS_BAR	(WM_APP + 77)
#define KAVI_TRAY_MESSAGE	(WM_APP + 78)
//Menu Items
#define IDM_APP_EXIT					(WM_APP + 101)
#define IDM_SYS_APP_SHOW				(WM_APP + 102)
#define IDM_SYS_APP_HIDE				(WM_APP + 103)
#define IDM_APP_ABOUT					(WM_APP + 104)
#define IDM_APP_STARTUP					(WM_APP + 105)
#define IDM_SYS_ADD_REMINDER			(WM_APP + 106)
#define IDM_SYS_EDIT_REMINDER			(WM_APP + 107)
#define IDM_SYS_DEL_REMINDER			(WM_APP + 108)
#define IDM_SYS_DELETE_ALL_REMINDER		(WM_APP + 109)



#define MAX_KEY_LENGTH 255
#define MAX_VALUE_NAME 16383



//funtions
HWND CreateStatusBar(const HWND hwnd);
void DisplayClockDateStatusBar(const HWND hStatusBar);
HWND CreateListViewBox(const HINSTANCE hInstance,HWND hwnd);
int AddListViewRow(const HWND hControl, TCHAR *szItemText, TCHAR *szSubItemText,TCHAR *szSubItemText2);
HMENU MenuDisplay(const HWND hwnd);
HMENU SystemTrayMenu(const HWND hwnd);
HKEY CreateApplicationKey();
int AddDatatoRegistry(const HKEY hKey, TCHAR *szDate,TCHAR *szTime,TCHAR *szReminder);
int SearchRegistryString(const HKEY hKey,TCHAR *szSearchDate,TCHAR *szSearchTime,TCHAR *szReminderData);
int UpdateListViewfromRegistry(const HWND hListView,HKEY hKey);
int CALLBACK SortingCodeListViewControl(LPARAM lParam1, LPARAM lParam2,LPARAM lParamSort)  ;
int CompareCurrentTimewithRegistryDataTimer(const HKEY hKey);
int DeleteEmptyKeysfromRegistry(const HKEY hKey);
HMENU RightClickMenuonListView(const HWND hwnd);




#endif

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, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer (Senior)
United States United States
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions