HOWTO: Cancel an Active Menu

ID: Q203372


The information in this article applies to:
  • Microsoft Win32 Software Development Kit (SDK), on platform(s):
    • Microsoft Windows NT 4.0
    • Microsoft Windows 95


SUMMARY

To cancel an active menu send a WM_CANCELMODE message to the window that owns it.


MORE INFORMATION

When you send the WM_CANCELMODE message to the owner window of an active menu, the window exits the menu mode. You can use this technique to force the abandonment of active TrackPopupMenu or TrackPopupMenuEx.

Additional query words:

Keywords : kbMenu kbNTOS kbSDKPlatform kbGrpUser kbWinOS
Version : WINDOWS:95
Platform : WINDOWS
Issue type : kbhowto


Last Reviewed: February 4, 1999
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.