Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Date Time Picker Control - Questions?

Posted on 1999-01-28
1
Medium Priority
?
432 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 300 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Introduction: Ownerdraw of the grid button.  A singleton class implentation and usage. Continuing from the fifth article about sudoku.   Open the project in visual studio. Go to the class view – CGridButton should be visible as a class.  R…
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
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.
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …
Suggested Courses

783 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