Solved

Date Time Picker Control - Questions?

Posted on 1999-01-28
1
423 Views
Last Modified: 2013-11-20
Although the date time picker control appears to use the month calendar control for the drop down calendar, how can I set any of associated with the month calendar eg "No Today"

Also when using the style DTS_APPCANPARSE there appears to be problems associated with an internal "lost focus event". Ie when the control created with this style is located and you enter information and then click on any other control in the dialog the control appears to eat the click message. Is this a bug in the implemntation of DTS_APPCANPARSE?

(This behaviour is demonstrated in the common control sample available on MSDN that was wrote by Aaron Skonnard in MSJ titled "Internet Client SDK Part iii, Common Controls")
0
Comment
Question by:pswann
1 Comment
 
LVL 11

Accepted Solution

by:
mikeblas earned 100 total points
ID: 1328419
You need to handle the DTN_DROPDOWN frmo your date/time control. That will tell you that the user has asked for the drop down, and the month/calendar control has been created, but has not yet been shown to the user.

In response to that notification, you should call GetMonthCalCtrl(). That'll gain you a pointer to the month calendar control object. You can modify its style using ModifyStyle() or ModifyStyleEx().

I don't see the Skonnard article you reference in my copy of MSDN. What do you mean by "eat the click message"? Are you saying that focus isn't passed to the control upon which you click?

BTW: I think you should ask two separate questions instead of folding two separate questions in one.

B ekiM


0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
ODBC Connection Logging, ADO.NET 6 71
Replacement selected text 2 66
pre4 challenge 19 110
Trying to run powershell  in a batch file. How do I do this? 8 117
If you use Adobe Reader X it is possible you can't open OLE PDF documents in the standard. The reason is the 'save box mode' in adobe reader X. Many people think the protected Mode of adobe reader x is only to stop the write access. But this fe…
In this post we will learn different types of Android Layout and some basics of an Android App.
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

749 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question