|
|
|
|
|
|
|
|
|
Quick Info
Windows NT
| Yes
| Win95
| Yes
| Win32s
| No
| Import Library
| -
| Header File
| shlobj.h
| Unicode
| No
| Platform Notes
| None
|
|
|
IContextMenu2::GetCommandString
[Now Supported on Windows NT]
Retrieves the language-independent command string or the help text for a
context menu item.
HRESULT GetCommandString(
UINT idCmd,
| //Menu item identifier offset
| UINT uFlags,
| //Specifies information to retrieve
| UINT *pwReserved,
| //Reserved; must be NULL
| LPSTR pszName,
| //Address of buffer to receive string
| UINT cchMax
| //Size of the buffer that receives the string
| );
|
|
Parameters
idCmd
Menu item identifier offset.
uFlags
Flag specifying the information to retrieve. This parameter can be one of the
following values:
Value
| Meaning
| GCS_HELPTEXT
| Returns the help text for the menu item.
| GCS_VALIDATE
| Validates that the menu item exists.
| GCS_VERB
| Returns the language-independent command name for the menu item.
|
pwReserved
Reserved. Applications must specify NULL when calling this method, and handles
must ignore this parameter when called.
pszName
Address of the buffer that receives the null-terminated string being retrieved.
cchMax
Size of the buffer that receives the null-terminated string.
Return Values
Returns NOERROR if successful or an OLE-defined error code otherwise.
Remarks
The language-independent command name is a name that can be passed to the IContextMenu::InvokeCommand method to activates a command by an application. The help text is a
description that the Explorer displays in its status bar; it should be reasonably short
(under 40 characters).
See Also
IContextMenu2, IContextMenu
Related Links
Software for Delphi and C++ Builder developers
Software for Visual Studio .NET developers
Software for Visual Basic 6 developers
Delphi Tips&Tricks
MegaDetailed.NET
More Online Helps
Win32 Multimedia Programmer's Reference (mmedia.hlp)
OLE Programmer's Reference (ole.hlp)
Microsoft Windows Pen API Programmer's Reference (penapi.hlp)
Microsoft Windows Sockets 2 Reference (sock2.hlp)
Microsoft Windows Telephony API (TAPI) Programmer's Reference (tapi.hlp)
Unix Manual Pages
|