>wisecrack: Thank you for answering. By the way, after posting message I looked into more information. And I found that "CMenu:CEnableMenuItem" may be right. My goal is to develop MFC project of dialog base. For example, here is a goal that when right-clicked over the icon of text file in Explorer, the item "cut" is glay. The below is the method. I created new MFC project of dialog base. (The project name is "Click".) And I added below code of "OnRButtonDown" with Class Wizard into "CClickDlg.cpp" file: === void CClickDlg::OnRButtonDown(UINT nFlags, CPoint point) { // TODO: CMenu *hMenu; CWnd* cwParent = GetParent(); DWORD dwStyle = cwParent->GetStyle(); hMenu = cwParent->GetSystemMenu(FALSE); hMenu -> EnableMenuItem(ID_EDIT_CUT, MF_GRAYED); CDialog::OnRButtonDown(nFlags, point); } === And including "afxres.h" in the first of "CClickDlg.cpp" file, I built "Click.exe" file. With "Click.exe" executing, I executed "explorer.exe" and I clicked right button over a certain text file. But the item "cut" wasn't glay. Which point of my method is wrong? If there is another good idea or programming flow, please tell me.