Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
Windos
win32.3rdparty
win32.directx.audio
win32.directx.ddk
win32.directx.graphics
win32.directx.input
win32.directx.managed
win32.directx.misc
win32.directx.networking
win32.directx.sdk
win32.directx.video
win32.dirx.grap.shaders
win32.gdi
win32.international
win32.kernel
win32.messaging
win32.mmedia
win32.networks
win32.ole
win32.rtc
win32.tapi
win32.tapi.beta
win32.tools
win32.ui
win32.wince
win32.wmi
windows.mediacenter
winfx.aero
winfx.announcements
winfx.avalon
winfx.collaboration
winfx.fundamentals
winfx.general
winfx.indigo
winfx.sdk
winfx.winfs
  
 
date: Fri, 13 Jun 2008 17:04:34 +0100,    group: microsoft.public.win32.programmer.ui        back       


DTPicker and bold dates   
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)

Thanks

-- 
Dean Earley (dean.earley@icode.co.uk)
i-Catcher Development Team

iCode Systems
date: Fri, 13 Jun 2008 17:04:34 +0100   author:   Dean Earley

Re: DTPicker and bold dates   
"Dean Earley"  wrote in message 
news:uttdt8WzIHA.4816@TK2MSFTNGP03.phx.gbl...
> 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.

No, it creates an actual MonthView. You have to be sure you're subclassing 
the MonthView when it's displayed. That's the only time it exists and 
therefore has an hWnd. To get the MonthView's hWnd, you have to send the 
DTPicker a message (DTM_GETMONTHCAL) and you must do this in the DTPicker's 
DropDown event.  You must also be careful not to use that hWnd once the 
DTPicker's CloseUp event has occurred. Each time the MonthView is 
re-created, it could have a different hWnd.

-- 
Mike
Microsoft MVP Visual Basic
date: Sat, 14 Jun 2008 07:28:45 -0400   author:   MikeD

Re: DTPicker and bold dates   
MikeD wrote:

> No, it creates an actual MonthView. You have to be sure you're subclassing 
> the MonthView when it's displayed. 

No, totally useless.
date: Sat, 14 Jun 2008 14:27:58 +0200   author:   Benoit

Re: DTPicker and bold dates   
"Benoit"  wrote in message news:g30de7$o4h$1@aioe.org...
> MikeD wrote:
>
>> No, it creates an actual MonthView. You have to be sure you're 
>> subclassing the MonthView when it's displayed.
>
> No, totally useless.
>

No, what's useless is your reply.

-- 
Mike
Microsoft MVP Visual Basic
date: Sat, 14 Jun 2008 09:03:02 -0400   author:   MikeD

Re: DTPicker and bold dates   
MikeD wrote:

>>MikeD wrote:
>>>No, it creates an actual MonthView. You have to be sure you're 
>>>subclassing the MonthView when it's displayed.
>>
>>No, totally useless.

> 
> No, what's useless is your reply.

No, he's right.
Read MSDN to learn what is the WM_NOTIFY message...
date: Sat, 14 Jun 2008 17:28:30 +0200   author:   Marc .

Re: DTPicker and bold dates   
"Marc" <.> wrote in message news:%238yGjMjzIHA.5716@TK2MSFTNGP04.phx.gbl...
> MikeD wrote:
>
>>>MikeD wrote:
>>>>No, it creates an actual MonthView. You have to be sure you're 
>>>>subclassing the MonthView when it's displayed.
>>>
>>>No, totally useless.
>
>>
>> No, what's useless is your reply.
>
> No, he's right.
> Read MSDN to learn what is the WM_NOTIFY message...
>

His reply was useless because he didn't provide any details. If I'm wrong 
about something, I can accept that and would hope someone corrects me. I WAS 
incorrect because WM_NOTIFY is sent to the parent window of the control. If 
Benoit has stated that fact instead of just saying my reply was useless, I'd 
have thanked him for the correction. At least your reply did prompt me to 
review the WM_NOTIFY message and realize my mistake, so thank you for that 
(but you also could have stated what my error was).

-- 
Mike
Microsoft MVP Visual Basic
date: Sat, 14 Jun 2008 18:29:44 -0400   author:   MikeD

Re: DTPicker and bold dates   
MikeD wrote:
> "Marc" <.> wrote in message news:%238yGjMjzIHA.5716@TK2MSFTNGP04.phx.gbl...
>> MikeD wrote:
>>
>>>> MikeD wrote:
>>>>> No, it creates an actual MonthView. You have to be sure you're 
>>>>> subclassing the MonthView when it's displayed.
>>>> No, totally useless.
>>> No, what's useless is your reply.
>> No, he's right.
>> Read MSDN to learn what is the WM_NOTIFY message...
>>
> 
> His reply was useless because he didn't provide any details. If I'm wrong 
> about something, I can accept that and would hope someone corrects me. I WAS 
> incorrect because WM_NOTIFY is sent to the parent window of the control. If 
> Benoit has stated that fact instead of just saying my reply was useless, I'd 
> have thanked him for the correction. At least your reply did prompt me to 
> review the WM_NOTIFY message and realize my mistake, so thank you for that 
> (but you also could have stated what my error was).
> 

Anyone care to elaborate?
What does WM_NOTIFY have to do with this?

I have subclassed the parent, and it doesn;t appear to be getting the 
notifications, but this could be the VB wrapper.

I do know that you can get wm_notify messages by subclassing the control 
itself using the WM_REFLECT or something similar. I'll need to dig into 
my other code.
This does however assume that it sends the messages I'm interested in.

-- 
Dean Earley (dean.earley@icode.co.uk)
i-Catcher Development Team

iCode Systems
date: Mon, 16 Jun 2008 09:11:38 +0100   author:   Dean Earley

Re: DTPicker and bold dates   
Dean Earley wrote:

> Anyone care to elaborate?
> What does WM_NOTIFY have to do with this?
> 
> I have subclassed the parent, and it doesn;t appear to be getting the 
> notifications, but this could be the VB wrapper.
> 
> I do know that you can get wm_notify messages by subclassing the control 
> itself using the WM_REFLECT or something similar. I'll need to dig into 
> my other code.
> This does however assume that it sends the messages I'm interested in.
>

see specialized api ng (comp.os.ms-windows.programmer.win32)
to understand why it can't work (classic problem for years...)
date: Wed, 18 Jun 2008 08:12:56 +0200   author:   kilt

Re: DTPicker and bold dates   
kilt wrote:
> Dean Earley wrote:
> 
>> Anyone care to elaborate?
>> What does WM_NOTIFY have to do with this?
>>
>> I have subclassed the parent, and it doesn;t appear to be getting the 
>> notifications, but this could be the VB wrapper.
>>
>> I do know that you can get wm_notify messages by subclassing the 
>> control itself using the WM_REFLECT or something similar. I'll need to 
>> dig into my other code.
>> This does however assume that it sends the messages I'm interested in.
>>
> 
> see specialized api ng (comp.os.ms-windows.programmer.win32)
> to understand why it can't work (classic problem for years...)

Google finds absolutely nothing relevant in that group and nor can my 
news reader.
I have posted there so someone can explain this "classic problem" that 
no one else has asked about...

Bizarrely, a "fred100" also told me about this by email (but also 
neglected to include any further details)
Try picking one name/email and sticking to it.

-- 
Dean Earley (dean.earley@icode.co.uk)
i-Catcher Development Team

iCode Systems
date: Wed, 18 Jun 2008 12:31:00 +0100   author:   Dean Earley

Re: DTPicker and bold dates   
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@icode.co.uk)
i-Catcher Development Team

iCode Systems
date: Tue, 24 Jun 2008 10:10:35 +0100   author:   Dean Earley

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us