From: <dan...@us...> - 2007-02-01 19:42:41
|
Revision: 871 http://svn.sourceforge.net/cegcc/?rev=871&view=rev Author: dannybackx Date: 2007-02-01 11:42:30 -0800 (Thu, 01 Feb 2007) Log Message: ----------- The attached patch fills in the structures and constants needed for making Today Screen plug ins. Most constants and structures were obtained on the following links: http://msdn2.microsoft.com/en-us/library/aa454291.aspx http://blogs.msdn.com/mikehall/archive/2004/02/22/78141.aspx The MAX_ITEMNAME constant was obtained by dumping the data pointer passed by InitializeCustomItem() and looking at the offset of the szDLLPath member (see the DUMP_DATA define in the code). The dump.txt file contains the edited result of this dump. The TODAYM_DRAWWATERMARK constant was guessed because it was the one missing between the two other similar messages. The WM_TODAYCUSTOM_CLEARCACHE and WM_TODAYCUSTOM_QUERYREFRESHCACHE messages were found by dumping the unknown window messages received greater that WM_USER. Modified Paths: -------------- trunk/cegcc/src/w32api/ChangeLog.ce trunk/cegcc/src/w32api/include/todaycmn.h Modified: trunk/cegcc/src/w32api/ChangeLog.ce =================================================================== --- trunk/cegcc/src/w32api/ChangeLog.ce 2007-01-31 21:02:32 UTC (rev 870) +++ trunk/cegcc/src/w32api/ChangeLog.ce 2007-02-01 19:42:30 UTC (rev 871) @@ -1,3 +1,8 @@ +2007-02-01 Nuno Lucas <nt...@gm...> + + * include/todaycmn.h : Create this file based on MSDN documentation + http://msdn2.microsoft.com/en-us/library/aa454291.aspx + 2007-01-31 Nuno Lucas <nt...@gm...> * include/winuser.h : Define MsgWaitForMultipleObjects as a macro that Modified: trunk/cegcc/src/w32api/include/todaycmn.h =================================================================== --- trunk/cegcc/src/w32api/include/todaycmn.h 2007-01-31 21:02:32 UTC (rev 870) +++ trunk/cegcc/src/w32api/include/todaycmn.h 2007-02-01 19:42:30 UTC (rev 871) @@ -9,6 +9,61 @@ extern "C" { #endif + +/* wParam to TODAYM_GETCOLOR */ +#define TODAYCOLOR_TEXT 0x10000004 +#define TODAYCOLOR_HIGHLIGHT 0x10000022 +#define TODAYCOLOR_HIGHLIGHTEDTEXT 0x10000023 + +/* lParam (by reference) to TODAYM_DRAWWATERMARK */ +typedef struct { + HDC hdc; + RECT rc; + HWND hwnd; +} TODAYDRAWWATERMARKINFO; + +#define TODAYM_GETCOLOR (WM_USER+100) +#define TODAYM_DRAWWATERMARK (WM_USER+101) +#define TODAYM_TOOKSELECTION (WM_USER+102) + +#define WM_TODAYCUSTOM_CLEARCACHE (WM_USER+242) +#define WM_TODAYCUSTOM_QUERYREFRESHCACHE (WM_USER+243) +#define WM_TODAYCUSTOM_RECEIVEDSELECTION (WM_USER+244) +#define WM_TODAYCUSTOM_LOSTSELECTION (WM_USER+245) +#define WM_TODAYCUSTOM_USERNAVIGATION (WM_USER+246) +#define WM_TODAYCUSTOM_ACTION (WM_USER+247) + +/* Types of items on the Today screen */ +typedef enum _TODAYLISTITEMTYPE{ + tlitOwnerInfo = 0, + tlitAppointments, + tlitMail, + tlitTasks, + tlitCustom, + tlitNil +} TODAYLISTITEMTYPE; + +/* Properties of a Today screen item */ + +#define MAX_ITEMNAME 32 + +typedef struct _TODAYLISTITEM { + TCHAR szName[MAX_ITEMNAME]; + TODAYLISTITEMTYPE tlit; + DWORD dwOrder; + DWORD cyp; + BOOL fEnabled; + BOOL fOptions; + DWORD grfFlags; + TCHAR szDLLPath[MAX_PATH]; + HINSTANCE hinstDLL; + HWND hwndCustom; + BOOL fSizeOnDraw; + BYTE * prgbCachedData; + DWORD cbCachedData; +} TODAYLISTITEM; + + #ifdef __cplusplus } #endif This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |