General information
Category:
Windows API functions
>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
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only