Professional UI Solutions
Site Map   /  Register


Please Log In to post a new message or reply to an existing one. If you are not registered, please register.

NOTE: Some forums may be read-only if you are not currently subscribed to our technical support services.

Forums » Prof-UIS General Discussion » Ho do I go about disabling the Prof-Uis default context menu in child views (MDI) Collapse All
Subject Author Date
Jason Smith Feb 7, 2007 - 5:24 AM

I am having a conflict between the default context menu (right mouse click in the view class’ client area) and other third party librarys (leadTools specifically).

When I click the right mouse button down the menu I want from lead tools appears but when I let go of the right button, the prof uis default menu appears displaying the "View" menu items.

How do I get the prof UIS menu in the client area of the view class to just not show at all when the right button is let up?


Suhai Gyorgy Feb 7, 2007 - 6:03 AM

Read the FAQ How to modify or suppress entirely built-in pop-up menus available in Prof-UIS?. There’s a sample code "you can suppress the menu to be appeared over the dock site by using the following code:" You need to use the CExtControlBar::POPUP_MENU_EVENT_DATA::__PMED_MDICLIAREA_CTX constant instead of CExtControlBar::POPUP_MENU_EVENT_DATA::__PMED_DOCKBAR_CTX in that sample.