WM SUBSTITUTESTRING: Difference between revisions
Appearance
Created page with "This message is sent from the WinSubstituteStrings call. ==Syntax== <PRE> param1 USHORT iindex; →Substitution index.: param2 ULONG ulReserved; →Reserved value, should be 0.: </PRE> ==Parameters== ;iindex (USHORT) - Input : A value corresponding to the decimal character in the substitution phrase. ;ulReserved (ULONG) - Input : Reserved value, should be 0. ==Returns== ;pString (PSZ) - returns : String to be substituted. This poin..." |
mNo edit summary |
||
| Line 1: | Line 1: | ||
This message is sent from the [[WinSubstituteStrings]] call. | This message is sent from the [[WinSubstituteStrings]] call. | ||
==Syntax== | ==Syntax== | ||
param1 | param1 | ||
USHORT iindex; /* Substitution index. */ | USHORT iindex; /* Substitution index. */ | ||
param2 | param2 | ||
ULONG ulReserved; /* Reserved value, should be 0. */ | ULONG ulReserved; /* Reserved value, should be 0. */ | ||
==Parameters== | ==Parameters== | ||
;iindex ([[USHORT]]) - Input | ;iindex ([[USHORT]]) - Input: A value corresponding to the decimal character in the substitution phrase. | ||
: A value corresponding to the decimal character in the substitution phrase. | ;ulReserved ([[ULONG]]) - Input: Reserved value, should be 0. | ||
;ulReserved ([[ULONG]]) - Input | |||
: Reserved value, should be 0. | |||
==Returns== | ==Returns== | ||
;pString ([[PSZ]]) - returns | ;pString ([[PSZ]]) - returns: String to be substituted. This points to a string (character) buffer. | ||
: String to be substituted. This points to a string (character) buffer. | |||
:;0: No substitution string | :;0: No substitution string | ||
:;Other: Substitution string. | :;Other: Substitution string. | ||
==Remarks== | ==Remarks== | ||
The | The WinSubstituteStrings call has encountered a substitution phrase in a string. The substitution phrase takes the form %<digit>, where <digit> is a single decimal character; that is, 0 through 9. | ||
==Default Processing== | ==Default Processing== | ||
Latest revision as of 00:35, 17 November 2025
This message is sent from the WinSubstituteStrings call.
Syntax
param1
USHORT iindex; /* Substitution index. */
param2
ULONG ulReserved; /* Reserved value, should be 0. */
Parameters
- iindex (USHORT) - Input
- A value corresponding to the decimal character in the substitution phrase.
- ulReserved (ULONG) - Input
- Reserved value, should be 0.
Returns
- pString (PSZ) - returns
- String to be substituted. This points to a string (character) buffer.
- 0
- No substitution string
- Other
- Substitution string.
Remarks
The WinSubstituteStrings call has encountered a substitution phrase in a string. The substitution phrase takes the form %<digit>, where <digit> is a single decimal character; that is, 0 through 9.
Default Processing
The default window procedure takes no action on this message, other than to set pString to 0.