PC Review Forums Newsgroups Microsoft DotNet Microsoft Dot NET Framework Forms Date Time Control

Reply

Date Time Control

 
Thread Tools Rate Thread
Old 10-12-2003, 02:21 AM   #1
Kstoj
Guest
 
Posts: n/a
Default Date Time Control



I'm creating the Date Time Picker control using the CreateWindowEx function.
Once I have a window handle is there a way to extract the CDateTimeCtrl
control object out of it.
This would be needed to further manipulate the Date Time values.
I know I can directly create the object using the CDateTimeCtrl control
class but I would like to know
if I can somehow extract it from the window.



  Reply With Quote
Old 10-12-2003, 10:00 AM   #2
Claes Bergefall
Guest
 
Posts: n/a
Default Re: Date Time Control

This has nothing to do with .NET framework
Try one of the mfc newsgroups

/claes

"Kstoj" <kriss.stoj@itron.com.removethis> wrote in message
news:e2XN6vrvDHA.2368@TK2MSFTNGP09.phx.gbl...
>
> I'm creating the Date Time Picker control using the CreateWindowEx

function.
> Once I have a window handle is there a way to extract the CDateTimeCtrl
> control object out of it.
> This would be needed to further manipulate the Date Time values.
> I know I can directly create the object using the CDateTimeCtrl control
> class but I would like to know
> if I can somehow extract it from the window.
>
>
>



  Reply With Quote
Old 10-12-2003, 10:15 AM   #3
Herfried K. Wagner [MVP]
Guest
 
Posts: n/a
Default Re: Date Time Control

* "Kstoj" <kriss.stoj@itron.com.removethis> scripsit:
> I'm creating the Date Time Picker control using the CreateWindowEx function.
> Once I have a window handle is there a way to extract the CDateTimeCtrl
> control object out of it.
> This would be needed to further manipulate the Date Time values.
> I know I can directly create the object using the CDateTimeCtrl control
> class but I would like to know
> if I can somehow extract it from the window.


Why not use .NET's 'DateTimePicker' class?

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
  Reply With Quote
Reply



Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off