Microsoft KB Archive/214625

{|
 * width="100%"|

DOC: Context Menu Help Text Not Displayed on Windows NT 4.0 or Later

 * }

Q214625

-

The information in this article applies to:


 * Microsoft Win32 Software Development Kit (SDK), on platform(s):
 * Microsoft Windows NT Server version 4.0
 * Microsoft Windows NT Workstation version 4.0
 * the operating system: Microsoft Windows 2000

-

SUMMARY
A context menu extension can return a help text associated with a menu item when the Shell calls IContextMenu::GetCommandString (or IContextMenu2::GetCommandString) with the GCS_HELPTEXT flag. This string is displayed in the status bar of the Explorer window.

MORE INFORMATION
On Windows NT 4.0 or later, the command string returned by the implementation of IContextMenu::GetCommandString may not be displayed in the status bar of Explorer when an ANSI string is returned.

The reason for this behavior is that the implementation of IContextMenu::GetCommandString should return a wide character string on Windows NT/Windows 2000 and an ANSI string on Win95/98. For this purpose, it is advisable to handle both the GCS_HELPTEXTA and GCS_HELPTEXTW flags.

Additional query words:

Keywords : kbdocfix kbContMenu kbOSWinNT400 kbOSWin2000 kbSDKWin32 kbGrpDSShell

Issue type : kbinfo

Technology : kbWin32SDKSearch kbAudDeveloper kbSDKSearch kbWin32sSearch