Professional UI Solutions
Site Map   /  Register
 
 

Forum

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 Tech Support » Disabling context menu causes flickering Collapse All
Subject Author Date
Chun Pong Lau Oct 9, 2006 - 5:15 PM

Dear support team,

When I disable context menu by overriding CExtDynamicControlBar::OnInitDbsMenu() by:

bool CMyExtDynamicControlBar::OnInitDbsMenu(CExtPopupMenuWnd * pPopup, HWND hWndTrack, CObject * pHelperSrc, LPARAM lParamHelper){
    return false;    // disabled right click context menu
}

It is true that the context menu does not pop up anymore, but it will cause some annoying flickerings, is there any method to eliminate this?

Thanks,
Alan

Suhai Gyorgy Oct 10, 2006 - 3:07 AM

Dear Allan,

I think you should rather use CExtControlBar::g_nMsgConstructPopupMenu registered windows message as described in this FAQ: How to modify or suppress entirely built-in pop-up menus available in Prof-UIS?

It seems to me that OnInitDbsMenu is rather used for modifying the menu and not for removing it completely.

Chun Pong Lau Oct 16, 2006 - 12:46 PM

It works very well. Thank you.

Alan