HOWTO: Change the International Settings Programmatically

ID: Q126625

The information in this article applies to:

SUMMARY

The International control panel icon allows you to choose international settings for the time, date, keyboard, and so forth. You can change these settings from your application code by calling SetLocaleInfo(). Be sure to broadcast a WM_WININICHANGE message using PostMessage() so that all applications are notified of the change.

The Win32 API allows you to display the time and date in the correct international format. Use GetDateFormat() and GetTimeFormat() to get the date and time in the format specified by the user.

Additional query words:

Keywords          : kbNTOS350 kbNTOS351 kbNTOS400 kbSysSettings kbGrpUser kbWinOS95 kbWinOS98 kbIntlDev 
Issue type        : kbhowto

Last Reviewed: January 2, 1999