///////////////////////////////////////////////////////////////////////////// // // File : calmsgs.h // // Author : Davon Cannon // // Date Created : May 24, 1999 // // Purpose : Contains all messages usable with IDEAL Calendar. // ///////////////////////////////////////////////////////////////////////////// #ifndef __CALMSGS_H__ #define __CALMSGS_H__ // WM_USER = 0x0400 // SendMessage example // // CWnd* pWnd; // // // Find the calendar window // // Be sure to include the space at the end of the IDEAL Calendar // // string. // pWnd = FindWindow(NULL, "IDEAL Calendar "); // // //Check to see if the window was found. This should not be a problem if // //IDEAL Calendar is open. // if (pWnd) // { // // PostMessage or SendMessage will work fine // // LPARAM and WPARAM are not used with this message // (pWnd)->SendMessage(UM_SHOW_CALENDAR); // } // Checks all the calendar databases #define UM_CHECK_DATABASES 0x0400+101 // Display the calendar // WPARAM = month // LPARAM = year #define UM_SHOW_CALENDAR 0x0400+10 // Displays the find window #define UM_FIND_OCCASIONS 0x0400+11 // Updates all the opened windows of IDEAL Calendar #define UM_UPDATE_WINDOWS 0x0400+12 // Displays the weekly events window #define UM_VIEW_WEEKLY_EVENTS 0x0400+13 // Display notification with specified message // WPARAM = message // LPARAM = type #define UM_SEND_NOTIFICATION 0x400+14 // Ignore ... #define WM_MY_TRAY_NOTIFICATION 0x0400+9 #endif // __CALMSGS_H__