Information générale
Catégorie:
Fonctions Windows API
Versions des environnements
>Hi Carlos,
>
>I would store AnuallyBoldedDates and MonthlyBoldedDates as an array/collection and also MONTHDAYSTATE values using _Access/_Assign. This way you'll have only build MONTHDAYSTATE when values change which'll happen less often compare to the number of calls to bold dates.
>I'm not sure if you can optimize storage of BoldedDates.
>
>
Sergey:
Thank you for your suggestions. I managed it with arrays for AnuallyBoldedDates, MonthlyBoldedDates, and BoldedDates.
The MONTHDAYSTATE 'array' has to be rebuilt from scratch every time you get the getdaystate message, since the change in months displayed could be by one month, or ten years.
So the only solution I came up with is to build the MONTHDAYSTATE 'array' one day at a time: iterate thru each element of the AnuallyBoldedDates array to find a match for day/month, then iterate thru each element of MonthlyBoldedDates to find a match for day, and then do an ASCAN for the date in BoldedDates.
Thank you again.
Carlos
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement