Void CMYVIEW :: OnRButtondown (uint nflags, cpoint point) {cscrollview :: OnRButtondown (nflags, point);
CMenu * Menu, * popup; menu = new cmenu ();
// load menu from resource filemenu-> loadingMenu; popup = menu-> getSubmenu (0); // Item 0 is Dummy
Uint Nenable; Nenable = MF_BYCOMMAND | MF_GRAYED;
IF (Your Test) {Nenable = MF_BYCOMMAND | MF_GRAYED;
Popup-> EnableMenuItem (ID_Your_ID, Nenable);
// Display menuclienttoscreen (& points); popup-> TRACKPOPUPMENU (TPM_LEFTALIGN | TPM_RightButton, Point.x, Point.y, this); delete menu;