If you want to create a CMFCPopupMenu object manually, allocate one on the heap and then call CMFCPopupMenu::Create.ExampleThe following example demonstrates how to configure a pop-up menu object. The example shows how to set the logo and the sound of the pop-up menu, set the ...
::GetCursorPos(&pt); COfficeXPMenu m_menu; m_menu.LoadMenu(IDR_MENU_LIST); COfficeXPMenu::SetType(TYPE_XP); //设置菜单的风格,(TYPE_XP, TYPE_NORMAL) COfficeXPMenu *psub = (COfficeXPMenu *)m_menu.GetSubMenu(0); DWORD dwID =psub->TrackPopupMenu(TPM_RIGHTBUTTON,pt.x,pt.y ,this)...
m_menu.LoadMenu(IDR_MENU_LIST); COfficeXPMenu::SetType(TYPE_XP); //设置菜单的风格,(TYPE_XP, TYPE_NORMAL) COfficeXPMenu *psub = (COfficeXPMenu *)m_menu.GetSubMenu(0); DWORD dwID =psub->TrackPopupMenu(TPM_RIGHTBUTTON,pt.x,pt.y ,this); m_menu.DestroyMenu(); }*pResult = 0...
m_list为ClistBox类型变量。 《22》m_listSearch.DeleteString(int nIndex); 功能:删除列表框中的第nIndex条记录。 m_listSearch为ClistBox类型变量。 《23》GetDlgItem(IDC_BUTTON_DELETE)->EnableWindow(FALSE); 功能:是ID为IDC_BUTTON_DELETE的按钮灰选。 《24》GetDlgItem(IDC_BUTTON_DELETE)->EnableWindow(TRUE...
CMFCMenuBar::GetDefaultMenuResId Returns the resource identifier for the original menu in the resource file. CMFCMenuBar::GetFloatPopupDirection CMFCMenuBar::GetForceDownArrows CMFCMenuBar::GetHelpCombobox Returns a pointer to the Help combo box. CMFCMenuBar::GetHMenu Returns the handle to th...
CCBCGPRadialMenu Radial popup menu window CCBCGPRadialMenuObject Radial popup menu object CCBCGPRatingColors Rating control custom colors CCBCGPRatingCtrl Rating control CCBCGPReBar Rebar window CCBCGPRecentDockInfo Recent docking information CCBCGPRecentFilesListBox Recent files/places list box CCBCGPRe...
, IDM_LINKS, GRAYED #0033 END #0034 POPUP "&Help" #0035 BEGIN #0036 MENUITEM "&Contents", IDM_HELPCONTENTS, GRAYED #0037 MENUITEM "&Search for Help On...", IDM_HELPSEARCH, GRAYED #0038 MENUITEM "&How to Use Help", IDM_HELPHELP, GRAYED #0039 MENUITEM SEPARATOR #0040 MENUITEM "...
CMFCRibbonCategory::OnDrawMenuBorderCalled by the framework to draw the border of a popup menu.Copy virtual void OnDrawMenuBorder( CDC* pDC, CMFCRibbonPanelMenuBar* pMenuBar); ParameterspDC [in] This parameter is not used.pMenuBar [in] This parameter is not used.Remarks...
CMFCRibbonCategory::OnDrawMenuBorderCalled by the framework to draw the border of a popup menu.Copy virtual void OnDrawMenuBorder( CDC* pDC, CMFCRibbonPanelMenuBar* pMenuBar); ParameterspDC [in] This parameter is not used.pMenuBar [in] This parameter is not used.Remarks...
CMFCRibbonCategory::OnDrawMenuBorderCalled by the framework to draw the border of a popup menu.Copy virtual void OnDrawMenuBorder( CDC* pDC, CMFCRibbonPanelMenuBar* pMenuBar); ParameterspDC [in] This parameter is not used.pMenuBar [in] This parameter is not used.Remarks...