Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6557073
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T13:01:41+00:00 2026-05-25T13:01:41+00:00

Can somebody please tell me how to set the cursor position in an MFC

  • 0

Can somebody please tell me how to set the cursor position in an MFC CDateTimeCtrl?

After somebody enters a date and presses an “Add” button, I clear my date control contents with m_Date.SetWindowText( “” ); The problem I have is that when tabbing back onto the control, it still shows the year as being highlighted. My date control is of the format DD/MM/YYYY

All I want to to is make the selected text the date (DD) rather than the last field (YYYY) selected.

Ideally, I would like to be able to get a CEdit* pointer to the control’s textbox. That way I could use CEdit::SetCurSel() and everything would be fine.

Cheers

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T13:01:42+00:00Added an answer on May 25, 2026 at 1:01 pm

    I think its safe to say it can’t be done. I ended up writing my own control to do the job as have other people as well.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Can somebody please tell me what is wrong with the following applescript set sourceFile
Can somebody please tell me how I can get google analytics on every page
Can somebody please tell me what is wrong with the following pom.xml? i'm getting
Can somebody please tell, what's the difference between the following two statements: TimeZone.getTimeZone(America/New_York) and
Can somebody please tell me what I am missing in this formula in SSRS?
Can somebody please tell me whether there is any difference between SPML and WSDL?
Can somebody please tell me which version of Rebol 2 to use on CentOS?
can somebody please tell me the difference between the following two code snippets: //Code
Can somebody please tell me what || this doing here (function() { window.myapp =
I have downloaded rx. Can somebody please tell of a suitable ide for debugging

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.