Displaying a context menu is supported only for popup menus in Windows. If you use TrackPopupMenuEx() you have to pass a handle to a popup menu (subenu). If you try to use it with the main menu handle, it displays only small thin line. But I need to display the whole menu like context, how can I accomplish this?