Microsoft KB Archive/203372

{|
 * width="100%"|

HOWTO: Cancel an Active Menu

 * }

Q203372

-

The information in this article applies to:


 * Microsoft Win32 Application Programming Interface (API), included with:
 * Microsoft Windows 95
 * Microsoft Windows 98
 * Microsoft Windows NT Server version 4.0
 * the operating system: Microsoft Windows 2000

-

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 kbOSWinNT kbOSWinNT400 kbOSWin2000 kbSDKPlatform kbGrpDSUser kbOSWin kbOSWin95 kbOSWin98

Issue type : kbhowto

Technology : kbAudDeveloper kbWin32sSearch kbWin32API