Professional UI Solutions
Site Map   /  Register


Please Log In to post a new message or reply to an existing one. If you are not registered, please register.

NOTE: Some forums may be read-only if you are not currently subscribed to our technical support services.

Forums » Prof-UIS General Discussion » CExtDateTimeWnd date/time formatting problem Collapse All
Subject Author Date
Dylan da Silva Apr 30, 2010 - 3:08 PM

I’m using several CExtDateTimeWnd controls and it looks great but I’d like to format the date DD/MM/YYYY instead of what seems to be the only option of MM/DD/YYYY.  I’m aware that this might be associated with the locale settings on the computer but I can’t count on them being set consistently from system to system.  Is there a way to change the formatting in code?  Or a quick and dirty way of changing the locale for that window or something?

Technical Support May 3, 2010 - 8:22 AM

The CExtDateTimeWnd control is not a text edit based window. It’s designed as a container for several editable fields and text label fields. The CExtDateTimeWnd::OnInitializeItemsArray() virtual method initializes all these fields by invoking several CExtDateTimeWnd::OnInitializeItem***() virtual methods responsible for initialization of each particular field. You can override any of these virtual methods and perform your own initialization sequence.