SHStripMneumonicA function

[This function is available through Windows XP and Windows Server 2003. It might be altered or unavailable in subsequent versions of Windows.]

Removes the mnemonic marker from a string.

Syntax

CHAR SHStripMneumonicA(
  LPSTR pszMenu
);

Parameters

pszMenu

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 [desktop apps only]
Minimum supported server Windows 2000 Server, Windows Server 2003 [desktop apps only]
Target Platform Windows
Header shlwapi.h
DLL Shlwapi.dll (version 5.0 or later)

See Also

DrawText