Click here to Skip to main content
15,896,201 members
Articles / Desktop Programming / MFC

Calendar Plug-in for .dan.g.'s ToDoList - In 10 Easy Steps™

Rate me:
Please Sign up or sign in to vote.
4.99/5 (63 votes)
10 Jun 2008CC (ASA 2.5)12 min read 1.1M   7.7K   252  
A Calendar UI extension component for the ToDoList, giving you a timeline view of your tasks
//Microsoft Developer Studio generated resource script.
//
#include "CalendarExtResource.h"

#define APSTUDIO_READONLY_SYMBOLS
/////////////////////////////////////////////////////////////////////////////
//
// Generated from the TEXTINCLUDE 2 resource.
//
#include "afxres.h"

/////////////////////////////////////////////////////////////////////////////
#undef APSTUDIO_READONLY_SYMBOLS

/////////////////////////////////////////////////////////////////////////////
// English (U.K.) resources

#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENG)
#ifdef _WIN32
LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_UK
#pragma code_page(1252)
#endif //_WIN32

#ifndef _MAC
/////////////////////////////////////////////////////////////////////////////
//
// Version
//

VS_VERSION_INFO VERSIONINFO
 FILEVERSION 1,0,0,0
 PRODUCTVERSION 0,0,0,0
 FILEFLAGSMASK 0x3fL
#ifdef _DEBUG
 FILEFLAGS 0x1L
#else
 FILEFLAGS 0x0L
#endif
 FILEOS 0x4L
 FILETYPE 0x2L
 FILESUBTYPE 0x0L
BEGIN
    BLOCK "StringFileInfo"
    BEGIN
        BLOCK "080904b0"
        BEGIN
            VALUE "Comments", "Calendar Plugin for the ToDoList \0"
            VALUE "CompanyName", "http://www.codeproject.com/KB/applications/TDL_Calendar.aspx\r\nhttp://www.codeproject.com/KB/applications/todolist2.aspx\0"
            VALUE "FileDescription", "CalendarExt DLL\0"
            VALUE "FileVersion", "1, 0, 0, 0\0"
            VALUE "InternalName", "CalendarExt\0"
            VALUE "LegalCopyright", "Copyright (C) 2008\0"
            VALUE "LegalTrademarks", "\0"
            VALUE "OriginalFilename", "CalendarExt.dll\0"
            VALUE "PrivateBuild", "\0"
            VALUE "ProductName", "CalendarExt Dynamic Link Library\0"
            VALUE "ProductVersion", "\0"
            VALUE "SpecialBuild", "\0"
        END
    END
    BLOCK "VarFileInfo"
    BEGIN
        VALUE "Translation", 0x809, 1200
    END
END

#endif    // !_MAC


/////////////////////////////////////////////////////////////////////////////
//
// Dialog
//

IDD_COMPLETED_TASKS DIALOG DISCARDABLE  0, 0, 192, 82
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
CAPTION "Completed Tasks"
FONT 8, "MS Sans Serif"
BEGIN
    LTEXT           "Display completed tasks as:",IDC_STATIC,7,7,88,8
    CONTROL         "&Hidden",IDC_CHK_COMPLETED_TASKS_HIDDEN,"Button",
                    BS_AUTOCHECKBOX | WS_TABSTOP,7,18,39,10
    CONTROL         "&Grey",IDC_CHK_COMPLETED_TASKS_GREY,"Button",
                    BS_AUTOCHECKBOX | WS_TABSTOP,7,30,31,10
    CONTROL         "&Strikethru",IDC_CHK_COMPLETED_TASKS_STRIKETHRU,"Button",
                    BS_AUTOCHECKBOX | WS_TABSTOP,7,42,46,10
    CONTROL         "",IDC_STATIC_SAMPLE_TEXT,"Static",SS_BLACKFRAME | 
                    WS_DISABLED | WS_GROUP,102,7,83,47
    DEFPUSHBUTTON   "OK",IDOK,43,61,50,14
    PUSHBUTTON      "Cancel",IDCANCEL,98,61,50,14
END


/////////////////////////////////////////////////////////////////////////////
//
// DESIGNINFO
//

#ifdef APSTUDIO_INVOKED
GUIDELINES DESIGNINFO DISCARDABLE 
BEGIN
    IDD_COMPLETED_TASKS, DIALOG
    BEGIN
        LEFTMARGIN, 7
        RIGHTMARGIN, 185
        TOPMARGIN, 7
        BOTTOMMARGIN, 75
    END
END
#endif    // APSTUDIO_INVOKED


/////////////////////////////////////////////////////////////////////////////
//
// Menu
//

IDR_CALENDAR MENU DISCARDABLE 
BEGIN
    POPUP "&View"
    BEGIN
        MENUITEM "&Mini-Calendar",              ID_VIEW_MINICALENDAR
        MENUITEM "&Status Bar",                 ID_VIEW_STATUSBAR
        MENUITEM "&Weekends",                   ID_VIEW_WEEKENDS
        MENUITEM SEPARATOR
        POPUP "&Number Of Weeks"
        BEGIN
            MENUITEM "&1 Week",                     ID_VIEW_NUMWEEKS_1
            MENUITEM "&2 Weeks",                    ID_VIEW_NUMWEEKS_2
            MENUITEM "&3 Weeks",                    ID_VIEW_NUMWEEKS_3
            MENUITEM "&4 Weeks",                    ID_VIEW_NUMWEEKS_4
            MENUITEM "&5 Weeks",                    ID_VIEW_NUMWEEKS_5
            MENUITEM "&6 Weeks",                    ID_VIEW_NUMWEEKS_6
            MENUITEM "&7 Weeks",                    ID_VIEW_NUMWEEKS_7
            MENUITEM "&8 Weeks",                    ID_VIEW_NUMWEEKS_8
            MENUITEM "&9 Weeks",                    ID_VIEW_NUMWEEKS_9
        END
        MENUITEM SEPARATOR
        MENUITEM "&Completed Tasks...",         ID_VIEW_COMPLETEDTASKS
    END
    MENUITEM "Go To &Today",                ID_GOTOTODAY
    MENUITEM "Check for &Updates",          ID_CHECKFORUPDATES
END


/////////////////////////////////////////////////////////////////////////////
//
// Toolbar
//

IDR_CALENDAR TOOLBAR DISCARDABLE  16, 15
BEGIN
    BUTTON      ID_BUTTON32771
END


/////////////////////////////////////////////////////////////////////////////
//
// Bitmap
//

IDR_CALENDAR            BITMAP  DISCARDABLE     "res\\toolbar1.bmp"
IDB_MINICAL_ARROW_L     BITMAP  DISCARDABLE     "res\\minical_arrow_L.bmp"
IDB_MINICAL_ARROW_R     BITMAP  DISCARDABLE     "res\\minical_arrow_R.bmp"

/////////////////////////////////////////////////////////////////////////////
//
// Icon
//

// Icon with lowest ID value placed first to ensure application icon
// remains consistent on all systems.
IDR_CALENDAR            ICON    DISCARDABLE     "res\\icon1.ico"

/////////////////////////////////////////////////////////////////////////////
//
// String Table
//

STRINGTABLE DISCARDABLE 
BEGIN
    ID_VIEW_MINICALENDAR    "Show or hide the Mini-Calendar"
    ID_VIEW_STATUSBAR       "Show or hide the Status Bar"
    ID_VIEW_WEEKENDS        "Show or hide weekends"
    ID_VIEW_COMPLETEDTASKS  "Decide the format of completed tasks"
    ID_VIEW_NUMWEEKS_1      "Display 1 week in the Big-Calendar"
    ID_VIEW_NUMWEEKS_2      "Display 2 weeks in the Big-Calendar"
    ID_VIEW_NUMWEEKS_3      "Display 3 weeks in the Big-Calendar"
END

STRINGTABLE DISCARDABLE 
BEGIN
    ID_VIEW_NUMWEEKS_4      "Display 4 weeks in the Big-Calendar"
    ID_VIEW_NUMWEEKS_5      "Display 5 weeks in the Big-Calendar"
    ID_VIEW_NUMWEEKS_6      "Display 6 weeks in the Big-Calendar"
    ID_VIEW_NUMWEEKS_7      "Display 7 weeks in the Big-Calendar"
    ID_VIEW_NUMWEEKS_8      "Display 8 weeks in the Big-Calendar"
    ID_VIEW_NUMWEEKS_9      "Display 9 weeks in the Big-Calendar"
END

STRINGTABLE DISCARDABLE 
BEGIN
    ID_SB_STARTDATE         "Start: %s              "
    ID_SB_STARTDATE_TIP     "Date the task started"
    ID_SB_DUEDATE           "Due: %s              "
    ID_SB_DUEDATE_TIP       "Date the task is due"
    ID_SB_DONEDATE          "Completed: %s              "
    ID_SB_DONEDATE_TIP      "Date the task was completed"
    ID_SB_TIMEESTIMATE      "Time Est: %s%c "
    ID_SB_TIMEESTIMATE_TIP  "Time estimated for this task"
    ID_SB_TIMESPENT         "Time Spent: %s%c "
    ID_SB_TIMESPENT_TIP     "Time spent on this task"
END

STRINGTABLE DISCARDABLE 
BEGIN
    IDS_NOWUW               "Before you can download updates you need to install the Web Update Wizard component (and then try again).\n\nWould you like to download the Web Update Wizard now?"
END

#endif    // English (U.K.) resources
/////////////////////////////////////////////////////////////////////////////


/////////////////////////////////////////////////////////////////////////////
// English (Australia) resources

#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENA)
#ifdef _WIN32
LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_AUS
#pragma code_page(1252)
#endif //_WIN32

#ifdef APSTUDIO_INVOKED
/////////////////////////////////////////////////////////////////////////////
//
// TEXTINCLUDE
//

1 TEXTINCLUDE DISCARDABLE 
BEGIN
    "CalendarExtResource.h\0"
END

2 TEXTINCLUDE DISCARDABLE 
BEGIN
    "#include ""afxres.h""\r\n"
    "\0"
END

3 TEXTINCLUDE DISCARDABLE 
BEGIN
    "#define _AFX_NO_SPLITTER_RESOURCES\r\n"
    "#define _AFX_NO_OLE_RESOURCES\r\n"
    "#define _AFX_NO_TRACKER_RESOURCES\r\n"
    "#define _AFX_NO_PROPERTY_RESOURCES\r\n"
    "\r\n"
    "#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU)\r\n"
    "#ifdef _WIN32\r\n"
    "LANGUAGE 9, 1\r\n"
    "#pragma code_page(1252)\r\n"
    "#endif //_WIN32\r\n"
    "#include ""res\\CalendarExt.rc2""  // non-Microsoft Visual C++ edited resources\r\n"
    "#include ""afxres.rc""         // Standard components\r\n"
    "#endif\r\n"
    "\0"
END

#endif    // APSTUDIO_INVOKED

#endif    // English (Australia) resources
/////////////////////////////////////////////////////////////////////////////



#ifndef APSTUDIO_INVOKED
/////////////////////////////////////////////////////////////////////////////
//
// Generated from the TEXTINCLUDE 3 resource.
//
#define _AFX_NO_SPLITTER_RESOURCES
#define _AFX_NO_OLE_RESOURCES
#define _AFX_NO_TRACKER_RESOURCES
#define _AFX_NO_PROPERTY_RESOURCES

#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU)
#ifdef _WIN32
LANGUAGE 9, 1
#pragma code_page(1252)
#endif //_WIN32
#include "res\CalendarExt.rc2"  // non-Microsoft Visual C++ edited resources
#include "afxres.rc"         // Standard components
#endif

/////////////////////////////////////////////////////////////////////////////
#endif    // not APSTUDIO_INVOKED

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 Creative Commons Attribution-ShareAlike 2.5 License


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

Comments and Discussions