SHStripMneumonic function
[This function is available through Windows XP and Windows Server 2003. It might be altered or unavailable in subsequent versions of Windows.]
Applies to: desktop apps only
Removes the mnemonic marker from a string.
Syntax
TCHAR SHStripMneumonic( __inout LPTSTR *pszMenu );
Parameters
- pszMenu [in, out]
-
Type: LPTSTR*
A pointer to the null-terminated string that contains the mnemonic marker.
Return value
Type: TCHAR
Returns the mnemonic character, if one was found. Otherwise, returns 0.
Remarks
The term "mnemonic" is misspelled in the function name.
The function supports the following mnemonic formats.
| Input String | Output String | Mnemonic Character | Remarks |
|---|---|---|---|
| "Str&ing" | "String" | 'i' | None. |
| "String (&S)" | "String" | 'S' | Supported only by the Unicode version of this function. Requires Windows XP or later. |
Requirements
|
Minimum supported client | Windows 2000 Professional, Windows XP |
|---|---|
|
Minimum supported server | Windows 2000 Server, Windows Server 2003 |
|
Header |
|
|
DLL |
|
|
Unicode and ANSI names | SHStripMneumonicW (Unicode) and SHStripMneumonicA (ANSI) |
See also
Send comments about this topic to Microsoft
Build date: 3/7/2012
Incorrect return value documented
The return value for the function has been incorrectly documented. If a mnemonic letter is not found, the function returns the first letter of the parameter string.
- 8/8/2008
- amlapamla
Why "mnemonic" is misspelled
Raymond Chen in his blog explains why "mnemonic" is misspelled; see http://blogs.msdn.com/oldnewthing/archive/2008/05/19/8518565.aspx.
- 5/19/2008
- Matteo Italia
- 5/19/2008
- Matteo Italia