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

Shell Extensibility - Explorer Desk Band, Tray Notification Icon et al.

, 28 Aug 2009
A simple Calendar utility that demonstrates basic Shell extensibility techniques: desk band, tray notification icon, locales.
Calendar.zip
Calendar
CalendarDeskBand
CalendarDeskBand.def
CalendarDeskBand.rgs
CalendarDeskBandApp.rgs
CalendarSysTray
Res
01.ico
02.ico
03.ico
04.ico
05.ico
06.ico
07.ico
08.ico
09.ico
10.ico
11.ico
12.ico
13.ico
14.ico
15.ico
16.ico
17.ico
18.ico
19.ico
20.ico
21.ico
22.ico
23.ico
24.ico
25.ico
26.ico
27.ico
28.ico
29.ico
30.ico
31.ico
Blank-16x16-16.ico
Calendar.ico
Common
Win32
Release
Calendar.exe
x64
Release
Calendar.exe
/////////////////////////////////////////////////////////////////////////////
//
// Dialog
//

IDD_DATEFORMAT DIALOGEX 0, 0, 247, 226
STYLE DS_SETFONT | DS_MODALFRAME | DS_FIXEDSYS | WS_POPUP | WS_CAPTION | WS_SYSMENU
CAPTION "Date Format Settings"
FONT 8, "MS Shell Dlg", 400, 0, 0x1
BEGIN
    GROUPBOX        "Available calendars",IDC_STATIC,7,6,233,80
    LTEXT           "L&anguage:",IDC_STATIC,13,18,35,8
    COMBOBOX        IDC_LANGUAGE,13,30,153,198,CBS_DROPDOWNLIST | CBS_SORT | WS_VSCROLL | WS_TABSTOP
    LTEXT           "Calendar &type:",IDC_STATIC,13,52,49,8
    COMBOBOX        IDC_CALENDARTYPE,13,65,153,188,CBS_DROPDOWNLIST | CBS_SORT | WS_VSCROLL | WS_TABSTOP
    GROUPBOX        "Date format",IDC_STATIC,7,94,233,72
    CONTROL         "&Short date",IDC_SHORTDATE,"Button",BS_AUTORADIOBUTTON | WS_GROUP | WS_TABSTOP,17,110,50,10
    CONTROL         "&Long date",IDC_LONGDATE,"Button",BS_AUTORADIOBUTTON | WS_TABSTOP,17,127,48,10
    CONTROL         "&Custom format:",IDC_CUSTOMDATE,"Button",BS_AUTORADIOBUTTON | WS_TABSTOP,17,144,66,10
    COMBOBOX        IDC_DATEFORMAT,89,143,143,201,CBS_DROPDOWN | CBS_AUTOHSCROLL | CBS_SORT | WS_VSCROLL | WS_TABSTOP
    LTEXT           "Date sample:",IDC_STATIC,7,178,43,14,SS_CENTERIMAGE
    EDITTEXT        IDC_DATESAMPLE,58,178,182,14,ES_AUTOHSCROLL | ES_READONLY
    DEFPUSHBUTTON   "OK",IDOK,132,205,50,14
    PUSHBUTTON      "Cancel",IDCANCEL,190,205,50,14
END

////////////////////////////////////////////////////////////////////////////////

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)

About the Author

Alex Blekhman
Software Developer
Australia Australia
More than ten years of C++ native development, and counting.
 
Smile | :)

| Advertise | Privacy | Mobile
Web03 | 2.8.140721.1 | Last Updated 28 Aug 2009
Article Copyright 2009 by Alex Blekhman
Everything else Copyright © CodeProject, 1999-2014
Terms of Service
Layout: fixed | fluid