|
Prev: PID values
Next: In which thread is WindowProc running?
From: Dean Earley on 18 Jun 2008 07:30 Hi all. The MonthView Common control has the ability to send notifications to the app to get a list of dates to show bolded. Does anyone know if it possible to hook into this for the DTPickers dropdown control? I've tried picking up the wm_notify messages and they don't seem to be sent. I'm not 100% sure whether it's a reimplementation of the monthview control or it creates a "real" one. (I'm also using the versions built into the VB6 common controls 2 library rather than the native windows one but they seem to use the same messages and branched at V5.something) This was also asked on the Microsoft newsgroups, but someone was spamming this group as the place to ask. Thanks -- Dean Earley (dean.earley(a)icode.co.uk) i-Catcher Development Team iCode Systems
From: Christian ASTOR on 18 Jun 2008 08:21 On 18 juin, 13:30, Dean Earley <dean.ear...(a)icode.co.uk> wrote: > The MonthView Common control has the ability to send notifications to > the app to get a list of dates to show bolded. > > Does anyone know if it possible to hook into this for the DTPickers > dropdown control? > I've tried picking up the wm_notify messages and they don't seem to be sent. > I'm not 100% sure whether it's a reimplementation of the monthview > control or it creates a "real" one. It's a Month Calendar C.C. but without the MCS_DAYSTATE style, which can only be set on creation... (created as child of "DropDown" custom control before sending DTN_DROPDOWN notification)
From: Dean Earley on 18 Jun 2008 09:02 Christian ASTOR wrote: > On 18 juin, 13:30, Dean Earley <dean.ear...(a)icode.co.uk> wrote: > >> The MonthView Common control has the ability to send notifications to >> the app to get a list of dates to show bolded. >> >> Does anyone know if it possible to hook into this for the DTPickers >> dropdown control? >> I've tried picking up the wm_notify messages and they don't seem to be sent. >> I'm not 100% sure whether it's a reimplementation of the monthview >> control or it creates a "real" one. > > It's a Month Calendar C.C. but without the > MCS_DAYSTATE style, which can only be set on creation... > (created as child of "DropDown" custom control before sending > DTN_DROPDOWN notification) I can pick up on that by subclassing the parent/owner can't I? ISTR a message sent to a window when a child is created allowing some stuff to be changed. -- Dean Earley (dean.earley(a)icode.co.uk) i-Catcher Development Team iCode Systems
From: Dean Earley on 24 Jun 2008 05:11 Dean Earley wrote: > Hi all. > > The MonthView Common control has the ability to send notifications to > the app to get a list of dates to show bolded. > > Does anyone know if it possible to hook into this for the DTPickers > dropdown control? > I've tried picking up the wm_notify messages and they don't seem to be > sent. > > I'm not 100% sure whether it's a reimplementation of the monthview > control or it creates a "real" one. > > (I'm also using the versions built into the VB6 common controls 2 > library rather than the native windows one but they seem to use the same > messages and branched at V5.something) For anyone else that wants to try this, I gave it up as there seems no (practical) way to set the right style on the monthview to make it ask for the bold dates. I also can't seem to get the notifications from the monthview making it futile. This was with the VB6 common control wrapper so the story may be different for the real common controls. I ended up using my own date picker control that shows a "dropdown" form containing a monthview control. Thanks for any help and suggestions,. -- Dean Earley (dean.earley(a)icode.co.uk) i-Catcher Development Team iCode Systems
From: Christian ASTOR on 24 Jun 2008 05:24 On 24 juin, 11:11, Dean Earley <dean.ear...(a)icode.co.uk> wrote: > Dean Earley wrote: > For anyone else that wants to try this, I gave it up as there seems no > (practical) way to set the right style on the monthview to make it ask > for the bold dates. I also can't seem to get the notifications from the > monthview making it futile. Because you can't change MCS_DAYSTATE (even with a CBT hook) once it's set on creation... (then you can get notifications like MCN_SELCHANGE (I get them by subclassing the DTP on XP), but not MCN_GETDAYSTATE)
|
Pages: 1 Prev: PID values Next: In which thread is WindowProc running? |