Lines Matching refs:mhMenu
69 pSalMenu->mhMenu = ::CreateMenu(); in CreateMenu()
71 pSalMenu->mhMenu = ::CreatePopupMenu(); in CreateMenu()
73 if( pSalMenu->mhMenu ) in CreateMenu()
74 GetSalData()->mhMenuSet.insert( pSalMenu->mhMenu ); in CreateMenu()
158 mhMenu = NULL; in WinSalMenu()
167 GetSalData()->mhMenuSet.erase( mhMenu ); in ~WinSalMenu()
168 ::DestroyMenu( mhMenu ); in ~WinSalMenu()
201 nPos = ::GetMenuItemCount( mhMenu ); in InsertItem()
206 if(!::InsertMenuItemW( mhMenu, nPos, TRUE, &pWItem->mInfo )) in InsertItem()
218 int num = ::GetMenuItemCount( mhMenu ); in RemoveItem()
227 if( !GetMenuItemInfoW( mhMenu, nPos, TRUE, &mi) ) in RemoveItem()
232 if( !::RemoveMenu( mhMenu, nPos, MF_BYPOSITION ) ) in RemoveItem()
254 if( !GetMenuItemInfoW( pSalMenu->mhMenu, nItemId, FALSE, &mi) ) in ImplRemoveItemById()
259 if( !::RemoveMenu( pSalMenu->mhMenu, nItemId, MF_BYCOMMAND ) ) in ImplRemoveItemById()
286 pWMenuItem->mInfo.hSubMenu = pWSubMenu->mhMenu; in SetSubMenu()
290 if(!::SetMenuItemInfoW( mhMenu, nPos, TRUE, &pWMenuItem->mInfo ) ) in SetSubMenu()
299 if( -1 != ::CheckMenuItem( mhMenu, nPos, MF_BYPOSITION|(bCheck ? MF_CHECKED : MF_UNCHECKED) ) ) in CheckItem()
305 …if( -1 != ::EnableMenuItem( mhMenu, nPos, MF_BYPOSITION|(bEnable ? MF_ENABLED : (MF_DISABLED|MF_GR… in EnableItem()
346 if(!::SetMenuItemInfoW( mhMenu, nPos, TRUE, &pWItem->mInfo )) in SetItemText()
375 if(!::SetMenuItemInfoW( mhMenu, nPos, TRUE, &pWItem->mInfo )) in SetAccelerator()
385 pData->hMenu = mhMenu; in GetSystemMenuData()