13 if (pszDestStr ==
NULL)
16 wcscpy(pszDestStr, szInsStr);
18 nStrSize =
wcslen(szInsStr);
20 for (nStrCnt = 0; nStrCnt < nStrSize; nStrCnt++)
22 if (nStrCnt == nStrSize - nPos)
24 pszDestStr[nDestStrCnt] =
L' ';
28 pszDestStr[nDestStrCnt] = szInsStr[nStrCnt];
32 pszDestStr[nDestStrCnt] =
L'\0';
51 if (pszDestStr ==
NULL)
54 wcscpy(pszDestStr, szSourceStr);
61 for (nFmtCount = 0; nFmtCount <=
wcslen(szFmtStr); nFmtCount++)
63 if (szFmtStr[nFmtCount] ==
L';' || szFmtStr[nFmtCount] ==
L'\0')
65 if (
_wtoi(szFmtVal) == 0 && !wasNul)
74 nSpaceOffset += nLastVal;
78 nSpaceOffset +=
_wtoi(szFmtVal);
81 szFmtVal[nValCount] =
L'\0';
86 wcscpy(pszDestStr,pszTempStr);
93 nLastVal =
_wtoi(szFmtVal);
98 szFmtVal[nValCount++] = szFmtStr[nFmtCount];
103 if (wasNul && nLastVal != 0)
105 for (nFmtCount = nSpaceOffset + nLastVal; nFmtCount <
wcslen(pszDestStr); nFmtCount += nLastVal + 1)
108 wcscpy(pszDestStr, pszTempStr);
129 if (szDestStr ==
NULL)
137 while (nFirstCharCnt <
wcslen(szSourceStr))
139 if (szSourceStr[nFirstCharCnt] == szTempl[0])
142 for (nCharCnt = nFirstCharCnt; nCharCnt < nFirstCharCnt +
wcslen(szTempl); nCharCnt++)
144 if (szSourceStr[nCharCnt] == szTempl[nSubStrCnt])
153 if (
wcslen(szTempl) == nSubStrCnt)
155 wcscat(szDestStr, szStrToReplace);
156 nDestStrCnt =
wcslen(szDestStr);
157 nFirstCharCnt +=
wcslen(szTempl) - 1;
164 szDestStr[nDestStrCnt++] = szSourceStr[nFirstCharCnt];
165 szDestStr[nDestStrCnt] =
L'\0';
189 if (hChildWnd ==
NULL)
VOID GetSelectedComboBoxText(HWND hwndDlg, INT nIdDlgItem, PWSTR Buffer, UINT uSize)
PWSTR ReplaceSubStr(PCWSTR szSourceStr, PCWSTR szStrToReplace, PCWSTR szTempl)
PWSTR InsSpacePos(PCWSTR szInsStr, const int nPos)
VOID GetSelectedComboBoxIndex(HWND hwndDlg, INT nIdDlgItem, PINT pValue)
PWSTR InsSpacesFmt(PCWSTR szSourceStr, PCWSTR szFmtStr)
#define HeapFree(x, y, z)
_Check_return_ _CRTIMP int __cdecl _wtoi(_In_z_ const wchar_t *_Str)
_CRTIMP size_t __cdecl wcslen(_In_z_ const wchar_t *_Str)
#define MAX_SAMPLES_STR_SIZE
_CRTIMP wchar_t *__cdecl wcscpy(_Out_writes_z_(_String_length_(_Source)+1) wchar_t *_Dest, _In_z_ const wchar_t *_Source)
_CRTIMP wchar_t *__cdecl wcsncpy(wchar_t *_Dest, const wchar_t *_Source, size_t _Count)
_CRTIMP wchar_t *__cdecl wcscat(_Inout_updates_z_(_String_length_(_Dest)+_String_length_(_Source)+1) wchar_t *_Dest, _In_z_ const wchar_t *_Source)
HWND WINAPI GetDlgItem(_In_opt_ HWND, _In_ int)
LRESULT WINAPI SendDlgItemMessageW(_In_ HWND, _In_ int, _In_ UINT, _In_ WPARAM, _In_ LPARAM)
LRESULT WINAPI SendMessageW(_In_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM)