HOWTO: Change the International Settings Programmatically

ID: Q126625


The information in this article applies to:
  • Microsoft Win32 Software Development Kit (SDK)
  • Microsoft Windows 2000


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 kbWinOS2000 kbSDKWin32 kbSysSettings kbGrpUser kbWinOS95 kbWinOS98 kbIntlDev
Version : WINDOWS:
Platform : WINDOWS
Issue type : kbhowto


Last Reviewed: February 2, 2000
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.