I have items that I want to go into a context menu. The problem is that the items take a while to generate. Therefore, if I have to prepopulate the context menu, i have to populate all 1500 items which takes a while even if those submenu’s arent accessed. Therefore, I am looking for a way to populate the menu only if it is actually opened. Does anyone know how to do this?
Share
The IContextMenu2 interface sends a WM_INITMENUPOPUP message which allows you to fill in items right before the menu is about to pop up.