Solved

Date Time Picker Control - Questions?

Posted on 1999-01-28
1
426 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

On Demand Webinar: Networking for the Cloud Era

Ready to improve network connectivity? Watch this webinar to learn how SD-WANs and a one-click instant connect tool can boost provisions, deployment, and management of your cloud connection.

Question has a verified solution.

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

Introduction: Finishing the grid – keyboard support for arrow keys to manoeuvre, entering the numbers.  The PreTranslateMessage function is to be used to intercept and respond to keyboard events. Continuing from the fourth article about sudoku. …
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.
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…

617 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