Bug in SysMonthCal32 (CMonthCalCtrl) on Vista ??
-
I been trying to figure out if this is a Vista bug or not. I been updating some apps to work in Vista. And in one of our apps we are showing the CMonthCalCtrl ( SysMonthCal32 ) and if I set days to be shown as bold. (using setdaystate) they are not shown. This works on XP and 2003. So after trying out different things for a couple of hours I open up the "Windows Calendar" that is available in Vista. Because I remembered that is shown the month calendar in on the upper left side. And after checking with Spy++ that it was the same controller (SysMonthCal32 ) I added some new appointments. And to my surprise they did not show up either. which are strange because I have a slight memory that it worked before. So I checked on another machine and it was the same there. I have now checked on 6 machines running Vista, both 32bit and 64bit, with and without SP1. And none of them are showing the marked dates. In the Windows Calendar. If I activating / deactivating my calendar with check checkbox for what calendars to show. I will see a very very small change in the font for the days that should have changed. So It try to change it but they are not shown as bold. I been searching for this problem on the net, but cannot find anything about it. because I can't be the first to notice this. What I wonder is. Does this work for anyone ? The thing is that I have seen this work before. ( I think..) - Mathias
-
I been trying to figure out if this is a Vista bug or not. I been updating some apps to work in Vista. And in one of our apps we are showing the CMonthCalCtrl ( SysMonthCal32 ) and if I set days to be shown as bold. (using setdaystate) they are not shown. This works on XP and 2003. So after trying out different things for a couple of hours I open up the "Windows Calendar" that is available in Vista. Because I remembered that is shown the month calendar in on the upper left side. And after checking with Spy++ that it was the same controller (SysMonthCal32 ) I added some new appointments. And to my surprise they did not show up either. which are strange because I have a slight memory that it worked before. So I checked on another machine and it was the same there. I have now checked on 6 machines running Vista, both 32bit and 64bit, with and without SP1. And none of them are showing the marked dates. In the Windows Calendar. If I activating / deactivating my calendar with check checkbox for what calendars to show. I will see a very very small change in the font for the days that should have changed. So It try to change it but they are not shown as bold. I been searching for this problem on the net, but cannot find anything about it. because I can't be the first to notice this. What I wonder is. Does this work for anyone ? The thing is that I have seen this work before. ( I think..) - Mathias
I can't get
MCM_SETDAYSTATE
to do anything at all. It returns 0 (failure) no matter what I do. :sigh:--Mike-- Visual C++ MVP :cool: LINKS~! CP SearchBar v3.0 | C++ Forum FAQ I work for Keyser Söze
-
I can't get
MCM_SETDAYSTATE
to do anything at all. It returns 0 (failure) no matter what I do. :sigh:--Mike-- Visual C++ MVP :cool: LINKS~! CP SearchBar v3.0 | C++ Forum FAQ I work for Keyser Söze
Apparently that is a known issue. Responding to MCN_GETDAYSTATE should work they say. But that are what I'm already doing and it works very well on XP but not Vista. I have not seen any application that using bold days in SysMonthCal32 to work at all on Vista. not even MS own Windows Calendar. Guess I have to turn off Windows Theme for that application. Then the Old version of SysMonthCal32 is used and then it works. But it is so ugly. But that is our workaround until the bug is fixed. And it must be a bug since I can't see it work in any application on any Vista machine I test. I haven't been able to find a list of known bug of Vista. Guess MS does not publish that. So I have spent 2 days at work trying to fix something that are unfixable. - Mathias S.