Go to the source code of this file.
|
static VOID | InitNumDecimalSepCB (HWND hwndDlg, PGLOBALDATA pGlobalData) |
|
static VOID | InitNumOfFracSymbCB (HWND hwndDlg, PGLOBALDATA pGlobalData) |
|
static VOID | InitNumFieldSepCB (HWND hwndDlg, PGLOBALDATA pGlobalData) |
|
static VOID | InitFieldDigNumCB (HWND hwndDlg, PGLOBALDATA pGlobalData) |
|
static VOID | InitNegSignCB (HWND hwndDlg, PGLOBALDATA pGlobalData) |
|
static VOID | InitNegNumFmtCB (HWND hwndDlg, PGLOBALDATA pGlobalData) |
|
static VOID | InitLeadingZeroesCB (HWND hwndDlg, PGLOBALDATA pGlobalData) |
|
static VOID | InitListSepCB (HWND hwndDlg, PGLOBALDATA pGlobalData) |
|
static VOID | InitUnitsSysCB (HWND hwndDlg, PGLOBALDATA pGlobalData) |
|
static VOID | UpdateNumSamples (HWND hwndDlg, PGLOBALDATA pGlobalData) |
|
static BOOL | GetNumberSetting (HWND hwndDlg, PGLOBALDATA pGlobalData) |
|
INT_PTR CALLBACK | NumbersPageProc (HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam) |
|
◆ MAX_FIELD_DIG_SAMPLES
#define MAX_FIELD_DIG_SAMPLES 3 |
◆ MAX_FIELD_SEP_SAMPLES
#define MAX_FIELD_SEP_SAMPLES 1 |
◆ MAX_FRAC_NUM_SAMPLES
#define MAX_FRAC_NUM_SAMPLES 10 |
◆ MAX_LEAD_ZEROES_SAMPLES
#define MAX_LEAD_ZEROES_SAMPLES 2 |
◆ MAX_LIST_SEP_SAMPLES
#define MAX_LIST_SEP_SAMPLES 1 |
◆ MAX_NEG_NUMBERS_SAMPLES
#define MAX_NEG_NUMBERS_SAMPLES 5 |
◆ MAX_NEG_SIGN_SAMPLES
#define MAX_NEG_SIGN_SAMPLES 1 |
◆ MAX_NUM_SEP_SAMPLES
◆ MAX_UNITS_SYS_SAMPLES
#define MAX_UNITS_SYS_SAMPLES 2 |
◆ SAMPLE_NEG_NUMBER
#define SAMPLE_NEG_NUMBER L"-123456789" |
◆ SAMPLE_NUMBER
#define SAMPLE_NUMBER L"123456789" |
◆ GetNumberSetting()
Definition at line 474 of file numbers.c.
477{
487
488
491 szNumDecimalSep,
493
494 if (szNumDecimalSep[0] ==
L'\0')
495 {
496
497
499 }
500
501
504 &nNumDigits);
505
506
509 szNumThousandSep,
511
512 if (szNumThousandSep[0] ==
L'\0')
513 {
514
515
517 }
518
519
522 &nNumGrouping);
523
524
527 szNumNegativeSign,
529
530 if (szNumNegativeSign[0] ==
L'\0')
531 {
532
533
535 }
536
537
540 &nNumNegFormat);
541
542
545 &nNumLeadingZero);
546
547
550 szNumListSep,
552
553 if (szNumListSep[0] ==
L'\0')
554 {
555
556
558 }
559
560
563 &nNumMeasure);
564
565
575
577}
#define IDC_NUMBERDSYMBOL
#define IDC_NUMBERSNDIGDEC
#define IDC_NUMBERSDIGITGRSYM
#define IDC_NUMBERSMEASSYS
#define IDC_NUMBERSNSIGNSYM
#define IDC_NUMBERSNNUMFORMAT
#define IDC_NUMBERSDISPLEADZER
#define IDC_NUMBERSDGROUPING
VOID GetSelectedComboBoxText(HWND hwndDlg, INT nIdDlgItem, PWSTR Buffer, UINT uSize)
#define MAX_NUMNEGATIVESIGN
#define MAX_NUMDECIMALSEP
VOID GetSelectedComboBoxIndex(HWND hwndDlg, INT nIdDlgItem, PINT pValue)
#define MAX_NUMTHOUSANDSEP
WCHAR szNumListSep[MAX_NUMLISTSEP]
WCHAR szNumDecimalSep[MAX_NUMDECIMALSEP]
WCHAR szNumNegativeSign[MAX_NUMNEGATIVESIGN]
WCHAR szNumThousandSep[MAX_NUMTHOUSANDSEP]
Referenced by NumbersPageProc().
◆ InitFieldDigNumCB()
Definition at line 187 of file numbers.c.
188{
189 PWSTR pszFieldDigNumSmpl;
191
192
197
198
200 {
202 if (pszFieldDigNumSmpl !=
NULL)
203 {
206 0,
207 (
LPARAM)pszFieldDigNumSmpl);
209 }
210 }
211
216}
#define MAX_FIELD_DIG_SAMPLES
static PWSTR lpFieldDigNumSamples[MAX_FIELD_DIG_SAMPLES]
#define HeapFree(x, y, z)
PWSTR InsSpacesFmt(PCWSTR szSourceStr, PCWSTR szFmtStr)
LRESULT WINAPI SendDlgItemMessageW(_In_ HWND, _In_ int, _In_ UINT, _In_ WPARAM, _In_ LPARAM)
Referenced by NumbersPageProc().
◆ InitLeadingZeroesCB()
Definition at line 315 of file numbers.c.
316{
319
320
325
326
328 {
332 if (pszResultStr !=
NULL)
333 {
336 0,
339 }
340 }
341
342
347}
#define MAX_LEAD_ZEROES_SAMPLES
static PWSTR lpLeadNumFmtSamples[MAX_LEAD_ZEROES_SAMPLES]
PWSTR ReplaceSubStr(PCWSTR szSourceStr, PCWSTR szStrToReplace, PCWSTR szTempl)
#define SendDlgItemMessage
Referenced by NumbersPageProc().
◆ InitListSepCB()
Definition at line 350 of file numbers.c.
352{
355
356
360 0);
361
362
367
368
370 {
373 0,
375 }
376
377
380 -1,
382
383
385 {
388 0,
392 -1,
394 }
395}
#define MAX_LIST_SEP_SAMPLES
static PWSTR lpListSepSamples[MAX_LIST_SEP_SAMPLES]
Referenced by NumbersPageProc().
◆ InitNegNumFmtCB()
Definition at line 268 of file numbers.c.
269{
270 PWSTR pszString1, pszString2;
272
273
278
279
281 {
282
286 if (pszString1 !=
NULL)
287 {
288
292 if (pszString2 !=
NULL)
293 {
296 0,
298
300 }
301
303 }
304 }
305
306
311}
static PWSTR lpNegNumFmtSamples[MAX_NEG_NUMBERS_SAMPLES]
#define MAX_NEG_NUMBERS_SAMPLES
Referenced by NumbersPageProc().
◆ InitNegSignCB()
Definition at line 220 of file numbers.c.
221{
224
225
229 0);
230
231
236
237
239 {
242 0,
244 }
245
246
249 -1,
251
252
254 {
257 0,
261 -1,
263 }
264}
#define MAX_NEG_SIGN_SAMPLES
static PWSTR lpNegSignSamples[MAX_NEG_SIGN_SAMPLES]
Referenced by NumbersPageProc().
◆ InitNumDecimalSepCB()
Definition at line 59 of file numbers.c.
60{
63
64
68 0);
69
70
75
76
78 {
81 0,
83 }
84
85
88 -1,
90
91
93 {
100 -1,
102 }
103}
#define MAX_NUM_SEP_SAMPLES
static PWSTR lpNumSepSamples[MAX_NUM_SEP_SAMPLES]
Referenced by NumbersPageProc().
◆ InitNumFieldSepCB()
Definition at line 139 of file numbers.c.
140{
143
144
148 0);
149
150
155
156
158 {
161 0,
163 }
164
165
168 -1,
170
171
173 {
176 0,
180 -1,
182 }
183}
static PWSTR lpFieldSepSamples[MAX_FIELD_SEP_SAMPLES]
#define MAX_FIELD_SEP_SAMPLES
Referenced by NumbersPageProc().
◆ InitNumOfFracSymbCB()
Definition at line 107 of file numbers.c.
108{
111
112
117
118
120 {
121
123
126 0,
128 }
129
130
135}
#define MAX_FRAC_NUM_SAMPLES
_CRTIMP wchar_t *__cdecl _itow(_In_ int _Value, _Pre_notnull_ _Post_z_ wchar_t *_Dest, _In_ int _Radix)
#define MAX_SAMPLES_STR_SIZE
Referenced by NumbersPageProc().
◆ InitUnitsSysCB()
Definition at line 399 of file numbers.c.
401{
402 WCHAR szUnitName[128];
404
405
410
411
413 {
415
418 0,
420 }
421
422
427}
#define MAX_UNITS_SYS_SAMPLES
int WINAPI LoadStringW(_In_opt_ HINSTANCE hInstance, _In_ UINT uID, _Out_writes_to_(cchBufferMax, return+1) LPWSTR lpBuffer, _In_ int cchBufferMax)
Referenced by NumbersPageProc().
◆ NumbersPageProc()
Definition at line 581 of file numbers.c.
585{
587
589
590 switch (uMsg)
591 {
595
606 break;
607
610 {
621 {
622
624 }
625 }
626 break;
627
630 {
632 {
635 }
636 }
637 break;
638 }
640}
static VOID InitNumDecimalSepCB(HWND hwndDlg, PGLOBALDATA pGlobalData)
static VOID InitUnitsSysCB(HWND hwndDlg, PGLOBALDATA pGlobalData)
static VOID UpdateNumSamples(HWND hwndDlg, PGLOBALDATA pGlobalData)
static VOID InitNumOfFracSymbCB(HWND hwndDlg, PGLOBALDATA pGlobalData)
static VOID InitFieldDigNumCB(HWND hwndDlg, PGLOBALDATA pGlobalData)
static VOID InitNegNumFmtCB(HWND hwndDlg, PGLOBALDATA pGlobalData)
static VOID InitNumFieldSepCB(HWND hwndDlg, PGLOBALDATA pGlobalData)
static BOOL GetNumberSetting(HWND hwndDlg, PGLOBALDATA pGlobalData)
static VOID InitLeadingZeroesCB(HWND hwndDlg, PGLOBALDATA pGlobalData)
static VOID InitNegSignCB(HWND hwndDlg, PGLOBALDATA pGlobalData)
static VOID InitListSepCB(HWND hwndDlg, PGLOBALDATA pGlobalData)
struct _GLOBALDATA * PGLOBALDATA
#define PropSheet_Changed(d, w)
HWND WINAPI GetParent(_In_ HWND)
Referenced by CustomizeLocalePropertySheet().
◆ UpdateNumSamples()
Definition at line 431 of file numbers.c.
433{
436
443
444
446 0,
448 &NumberFormat,
451
454 0,
456
457
459 0,
461 &NumberFormat,
464
467 0,
469}
#define SAMPLE_NEG_NUMBER
#define IDC_NUMBERSPOSSAMPLE
#define IDC_NUMBERSNEGSAMPLE
GROUPINGDATA GroupingFormats[MAX_GROUPINGFORMATS]
_In_ UCHAR _In_ ULONG _Out_ PUCHAR _Outptr_result_bytebuffer_ OutBufferLength PVOID * OutBuffer
Referenced by NumbersPageProc().
◆ lpFieldDigNumSamples
◆ lpFieldSepSamples
◆ lpLeadNumFmtSamples
◆ lpListSepSamples
◆ lpNegNumFmtSamples
◆ lpNegSignSamples
◆ lpNumSepSamples