* PROGRAMMER: Eric Kohl
*/
-#include <windows.h>
-#include <commctrl.h>
-#include <cpl.h>
-#include <tchar.h>
-
#include "intl.h"
-#include "resource.h"
#define SAMPLE_NUMBER _T("123456789")
#define SAMPLE_NEG_NUMBER _T("-123456789")
{_T(",7"), _T("0,7")};
static LPTSTR lpListSepSamples[MAX_LIST_SEP_SAMPLES] =
{_T(";")};
-static LPTSTR lpUnitsSysSamples[MAX_UNITS_SYS_SAMPLES] =
- {_T("Metric"), _T("Imperial")};
/* Init num decimal separator control box */
LCID lcid)
{
TCHAR szUnitsSys[MAX_SAMPLES_STR_SIZE];
+ TCHAR szUnitName[128];
INT nCBIndex;
/* Get current system of units */
/* Create list of standard system of units */
for (nCBIndex = 0; nCBIndex < MAX_UNITS_SYS_SAMPLES; nCBIndex++)
{
+ LoadString(hApplet, IDS_METRIC + nCBIndex, szUnitName, 128);
+
SendMessage(GetDlgItem(hwndDlg, IDC_NUMBERSMEASSYS),
CB_ADDSTRING,
0,
- (LPARAM)lpUnitsSysSamples[nCBIndex]);
+ (LPARAM)szUnitName);
}
/* Set current item to value from registry */