Solved

Date Time Picker Control - Questions?

Posted on 1999-01-28
1
414 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
Comment Utility
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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

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…
Introduction: Dialogs (1) modal - maintaining the database. Continuing from the ninth article about sudoku.   You might have heard of modal and modeless dialogs.  Here with this Sudoku application will we use one of each type: a modal dialog …
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.
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

771 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

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now