Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Date Time Picker Control - Questions?

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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

Introduction: Dynamic window placements and drawing on a form, simple usage of windows registry as a storage place for information. Continuing from the first article about sudoku.  There we have designed the application and put a lot of user int…
Introduction: Database storage, where is the exe actually on the disc? Playing a game selected randomly (how to generate random numbers).  Error trapping with try..catch to help the code run even if something goes wrong. Continuing from the seve…
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.
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …

715 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