How to display status messages when menu items are highlighted
Subclasses a form to watch for menu item clicks. Illustrates a bug in GetMenuItemInfo and
a method to determine if the top level menu is the current selection.
Uses the following API functions and messages:
- CallWindowProc
- CopyMemory (RtlMoveMemory)
- GetMenu
- GetMenuItemInfo
- GetMenuString
- SetWindowLong
Back to Code Samples
Copyright © 2000 by Matt E. Hart, All Rights Reserved Worldwide.
Nothing on this web site may be reproduced, in any form, without express written consent.