Re: Derek - Suggestion for small change to MonthCalendar control
Thanks Jonas.
----- Original Message -----
From: "Jonas Temple" <jktemple at yhti.net>
To: "EUforum" <EUforum at topica.com>
Subject: Derek - Suggestion for small change to MonthCalendar control
>
> Derek,
>
> A while back you posted a change to allow onChange to be used with a
> MonthCalendar control in response to the user clicking a date. I had
> need for this so I applied the patch as well. What I found was that the
> onChange was being called even when the user changed the month displayed
> in the control. I reasearched the Win32 docs and found that there are
> two messages for MonthCalendar control changes: MCN_SELECT and
> MCN_SELCHANGE. The MCN_SELCHANGE is what is currently being handled in
> Win32lib. The docs state that MCN_SELECT is sent when the user
> explicitly clicks on a date. I changed Win32lib to respond to this
> event:
>
> constant kNotifications =
> {
> TCN_SELCHANGE
> , LVN_COLUMNCLICK
> , LVN_GETDISPINFO
> , LVN_BEGINDRAG
> , TVN_GETDISPINFO
> , TVN_SELCHANGED
> , TVN_DELETEITEM
> , TTN_GETDISPINFO
> -- Beg CJT01
> -- , MCN_SELCHANGE
> , MCN_SELECT
> -- End CJT01
> , TBN_GETBUTTONINFO
> , TBN_QUERYINSERT
> , TBN_QUERYDELETE
> }
>
> Jonas
>
>
>
>
>
|
Not Categorized, Please Help
|
|