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

  • SEARCH
  • Home
  • 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 9176829
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T17:11:50+00:00 2026-06-17T17:11:50+00:00

I have an MFC dialog with a time control. Currently, if I change the

  • 0

I have an MFC dialog with a time control. Currently, if I change the ‘Long time’ format on my PC (for example in Win7 -> Region and Language -> Long time), the dialog will follow suit and display in the selected format. However, I do not need the seconds to be displayed. Is there a way that I can pull the ‘Short time’ picture instead?

I know that I can remove the seconds by using .SetFormat on the control, but this hard codes whatever format I enter and does not allow the user to switch between standard and military times (which is required).

  • 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-06-17T17:11:51+00:00Added an answer on June 17, 2026 at 5:11 pm

    Use GetLocaleInfoEx to get the format string for the short date (ie LOCALE_SSHORTDATE) for your user’s locale setting and pass that to SetFormat method.

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

Sidebar

Related Questions

I have a custom MFC dialog CMyDialog , with a custom control of type
Language: Visual C++, MFC Environment: Visual Studio 2005 I have a dialog that requires
I have a Windows native C++/Win32/MFC dialog app. I'm using the IE ActiveX control
I have a MFC dialog based application. The main dialog contain a child dialog
I have an MFC dialog containing a dozen or so buttons, radio buttons and
I have a MFC dialog based application in which I use ::system() function to
I have created a dialog box in my MFC app as below: BackfaceControlPoints *controlpoints
I'm coding an MFC application in which i have a dialog box with multiple
I have an MFC application that uses an ancient (circa 1999) third-party ActiveX control.
I have written an MFC dialog based application which is launched by some another

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.