How To Change the International Settings Programmatically (126625)



The information in this article applies to:

  • Microsoft Platform Software Development Kit (SDK) 1.0

This article was previously published under Q126625

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.

Modification Type:MinorLast Reviewed:7/11/2005
Keywords:kbhowto kbIntlDev kbSysSettings KB126625