Jump to content

WM SUBSTITUTESTRING: Difference between revisions

From EDM2
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..."
 
Ak120 (talk | contribs)
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==
<PRE>
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. */
</PRE>


==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 [[WinSubstituteStrings]] call has encountered a substitution phrase in a string. The substitution phrase takes the form &#37;&lt;digit&gt;, where &lt;digit&gt; is a single decimal character; that is, 0 through 9.
The WinSubstituteStrings call has encountered a substitution phrase in a string. The substitution phrase takes the form &#37;<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.