home *** CD-ROM | disk | FTP | other *** search
/ Hot Shareware 35 / hot35.iso / ficheros / 9TOOL / CALEN32A.ZIP / CALENDAR.H < prev    next >
C/C++ Source or Header  |  1998-01-22  |  2KB  |  56 lines

  1. #ifndef CALENDAR_INCLUDED
  2. #define CALENDAR_INCLUDED
  3.  
  4. #ifdef __cplusplus
  5. extern "C" {
  6. #endif
  7.  
  8. #include <windows.h>
  9.  
  10. #if defined (WIN32)
  11. #define DLLENTRY
  12. #else
  13. #include <windows.h>
  14. #define DLLENTRY      CALLBACK _loadds
  15. #endif
  16.  
  17. // structures
  18. typedef struct
  19. {
  20.     int         xPos;                  // initial x position of window
  21.     int         yPos;                  // initial y position of window
  22.     int         xSize;                 // initial x size of window
  23.     int         ySize;                 // initial y size of window
  24.     COLORREF    DayColor;              // color of unselected days
  25.     COLORREF    SelectedDayColor;      // color of selected days
  26.     COLORREF    SelectedBkgColor;      // backgnd color of selected days (no 3D)
  27.     BOOL        Days3D;                // 3D appearance of days
  28.     BOOL        ClickToSelect;         // mouse click necessary to select day
  29.     short       FirstDayOfWeek;        // first day of week
  30.     char        FontName[LF_FACESIZE]; // name of font for numbers of days
  31. } CALENDAR;
  32. typedef CALENDAR *     PCALENDAR;
  33. typedef CALENDAR NEAR* NPCALENDAR;
  34. typedef CALENDAR FAR*  LPCALENDAR;
  35.  
  36. #define     MONDAY      1
  37. #define     TUESDAY     2
  38. #define     WEDNESDAY   3
  39. #define     THURSDAY    4
  40. #define     FRIDAY      5
  41. #define     SATURDAY    6
  42. #define     SUNDAY      7
  43.  
  44. // function prototypes
  45. void            DLLENTRY calInit(char *);
  46. void            DLLENTRY calSetDefaults(void);
  47. LPCALENDAR      DLLENTRY calGetParams(LPCALENDAR);
  48. BOOL            DLLENTRY calSetParams(LPCALENDAR);
  49. char           *DLLENTRY Calendar(HWND, char *, char *);
  50.  
  51. #ifdef __cplusplus
  52. }
  53. #endif
  54.  
  55. #endif      //CALENDAR_INCLUDED
  56.