We are developing a mixed c++ application were we host a usercontrol within an MFC CWinFormsView. This control contains UltraToolbars with PopupMenuTool dropdown menus.
We are experiencing problems with the dropdown menus remaining sticky on the screen when the mouse clicks outside the menu or the form is moved or closed. Furthermore, the Escape doesn't work for closing the menus or any other shortcut key assigned to a menu entry. We also have a WinNavigationBar that has the same problems when a dropdown for a location is opened.
Could you please advise?
Carlo
Its funny, I haven't seen anyone have this issue before, and now it has happened twice in the past 10 days (here is the other post: http://forums.infragistics.com/forums/p/2827/17955.aspx). It appears your are having the same problem. Here is the solution that worked before:
Add a call to Infragistics.Win.Utilities.ForceNativeMessageFilter() to the constructor of the UserControl. I say to add this call to the constructor and not to the start of the application because it doesn't hurt to call this method multiple times and calling it only applies to the thread it was called on. In a multi-threaded application, you would want to make sure the the fix is applied to user controls instantiated on all threads.
Thanks Mike, that worked great for the menus sticking on the screen. However the shortcut keys or the escape key for closing the menu still don't work. Do you have any suggestions for that?