Forum
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.
Subject |
Author |
Date |
|
Damien Castelltort
|
Jan 10, 2007 - 1:44 AM
|
Hi,
I want to change the current decimal separator in the property cells of my app. For the moment the separator is ’,’ (french Windows XP). I want to change it and have ’.’ instead. The language in the ressources is set to English (US - 0x0409) but the separator is still ’,’. Same thing if I make a call to SetThreadLocale(MAKELCID(0x0409, SORT_DEFAULT));.
Do you have a way to change this separator in the cells ?
Thanks in advance.
AurA©lien Loizeau
|
|
Damien Castelltort
|
Jan 10, 2007 - 2:24 AM
|
I found CExtGridCellNumber::SetDecimalSeparator to specify the separator but as we used variant cells I was not able to use this method.
I solved the problem using this code : LCID LOCALE_LCID = GetSystemDefaultLCID(); ASSERT(SetLocaleInfo(LOCALE_LCID, LOCALE_SDECIMAL, "."));
|
|