Go to the source code of this file.
|
static VOID | UpdateExamples (HWND hwndDlg, PGLOBALDATA pGlobalData) |
|
static VOID | InitCurrencySymbols (HWND hwndDlg, PGLOBALDATA pGlobalData) |
|
static VOID | InitCurrencyPositiveFormats (HWND hwndDlg, PGLOBALDATA pGlobalData) |
|
static VOID | InitCurrencyNegativeFormats (HWND hwndDlg, PGLOBALDATA pGlobalData) |
|
static VOID | InitCurrencyDecimalSeparators (HWND hwndDlg, PGLOBALDATA pGlobalData) |
|
static VOID | InitCurrencyNumFracDigits (HWND hwndDlg, PGLOBALDATA pGlobalData) |
|
static VOID | InitCurrencyGroupSeparators (HWND hwndDlg, PGLOBALDATA pGlobalData) |
|
static VOID | InitDigitGroupCB (HWND hwndDlg, PGLOBALDATA pGlobalData) |
|
static BOOL | GetCurrencySetting (HWND hwndDlg, PGLOBALDATA pGlobalData) |
|
INT_PTR CALLBACK | CurrencyPageProc (HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam) |
|
◆ NEGATIVE_EXAMPLE
#define NEGATIVE_EXAMPLE L"-123456789.00" |
◆ POSITIVE_EXAMPLE
#define POSITIVE_EXAMPLE L"123456789.00" |
◆ CurrencyPageProc()
Definition at line 351 of file currency.c.
355{
357
359
360 switch (uMsg)
361 {
365
374 break;
375
378 {
388 {
389
391 }
392 }
393 break;
394
397 {
399 {
402 }
403 }
404 break;
405 }
407}
static VOID InitDigitGroupCB(HWND hwndDlg, PGLOBALDATA pGlobalData)
static VOID InitCurrencyGroupSeparators(HWND hwndDlg, PGLOBALDATA pGlobalData)
static VOID InitCurrencyPositiveFormats(HWND hwndDlg, PGLOBALDATA pGlobalData)
static VOID InitCurrencySymbols(HWND hwndDlg, PGLOBALDATA pGlobalData)
static VOID InitCurrencyNumFracDigits(HWND hwndDlg, PGLOBALDATA pGlobalData)
static VOID UpdateExamples(HWND hwndDlg, PGLOBALDATA pGlobalData)
static VOID InitCurrencyDecimalSeparators(HWND hwndDlg, PGLOBALDATA pGlobalData)
static VOID InitCurrencyNegativeFormats(HWND hwndDlg, PGLOBALDATA pGlobalData)
static BOOL GetCurrencySetting(HWND hwndDlg, PGLOBALDATA pGlobalData)
#define IDC_CURRENCYSYMBOL
#define IDC_CURRENCYNEGVALUE
#define IDC_CURRENCYDECNUM
#define IDC_CURRENCYGRPNUM
#define IDC_CURRENCYPOSVALUE
#define IDC_CURRENCYGRPSEP
#define IDC_CURRENCYDECSEP
struct _GLOBALDATA * PGLOBALDATA
#define PropSheet_Changed(d, w)
HWND WINAPI GetParent(_In_ HWND)
Referenced by CustomizeLocalePropertySheet().
◆ GetCurrencySetting()
Definition at line 266 of file currency.c.
269{
277
278
281 szCurrSymbol,
283
284 if (szCurrSymbol[0] ==
L'\0')
285 {
286
287
289 }
290
291
294 &nCurrPosFormat);
295
296
299 &nCurrNegFormat);
300
301
304 szCurrDecimalSep,
306
307 if (szCurrDecimalSep[0] ==
L'\0')
308 {
309
310
312 }
313
314
317 &nCurrDigits);
318
319
322 szCurrThousandSep,
324
325 if (szCurrThousandSep[0] ==
L'\0')
326 {
327
328
330 }
331
332
335 &nCurrGrouping);
336
337
345
347}
VOID GetSelectedComboBoxText(HWND hwndDlg, INT nIdDlgItem, PWSTR Buffer, UINT uSize)
VOID GetSelectedComboBoxIndex(HWND hwndDlg, INT nIdDlgItem, PINT pValue)
#define MAX_CURRTHOUSANDSEP
#define MAX_CURRDECIMALSEP
_CRTIMP wchar_t *__cdecl wcscpy(_Out_writes_z_(_String_length_(_Source)+1) wchar_t *_Dest, _In_z_ const wchar_t *_Source)
WCHAR szCurrThousandSep[MAX_CURRTHOUSANDSEP]
WCHAR szCurrDecimalSep[MAX_CURRDECIMALSEP]
WCHAR szCurrSymbol[MAX_CURRSYMBOL]
Referenced by CurrencyPageProc().
◆ InitCurrencyDecimalSeparators()
Definition at line 159 of file currency.c.
160{
161
165 0);
166
167
170 0,
172
175 0,
176 0);
177}
LRESULT WINAPI SendDlgItemMessageW(_In_ HWND, _In_ int, _In_ UINT, _In_ WPARAM, _In_ LPARAM)
Referenced by CurrencyPageProc().
◆ InitCurrencyGroupSeparators()
◆ InitCurrencyNegativeFormats()
Definition at line 123 of file currency.c.
124{
128
129
137
138 for (
i = 0;
i < 16;
i++)
139 {
144
147 -1,
149 }
150
154 0);
155}
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
Referenced by CurrencyPageProc().
◆ InitCurrencyNumFracDigits()
Definition at line 182 of file currency.c.
183{
186
187
188 for (
i = 0;
i < 10;
i++)
189 {
190 szBuffer[0] =
L'0' +
i;
191 szBuffer[1] = 0;
194 0,
196 }
197
201 0);
202}
Referenced by CurrencyPageProc().
◆ InitCurrencyPositiveFormats()
◆ InitCurrencySymbols()
◆ InitDigitGroupCB()
Definition at line 229 of file currency.c.
230{
234
235
243
245 {
247
253 -1,
255 }
256
260 0);
261}
GROUPINGDATA GroupingFormats[MAX_GROUPINGFORMATS]
#define MAX_GROUPINGFORMATS
Referenced by CurrencyPageProc().
◆ UpdateExamples()
Definition at line 34 of file currency.c.
35{
38
47
48
52
54
55
59
61}
#define IDC_CURRENCYNEGSAMPLE
#define IDC_CURRENCYPOSSAMPLE
Referenced by CurrencyPageProc().