Lines Matching refs:hMenu
4771 static WinSalMenuItem* ImplGetSalMenuItem( HMENU hMenu, UINT nPos, sal_Bool bByPosition=TRUE ) in ImplGetSalMenuItem() argument
4779 if( !GetMenuItemInfoW( hMenu, nPos, bByPosition, &mi) ) in ImplGetSalMenuItem()
4786 static int ImplGetSelectedIndex( HMENU hMenu ) in ImplGetSelectedIndex() argument
4794 int n = GetMenuItemCount( hMenu ); in ImplGetSelectedIndex()
4799 if( !GetMenuItemInfoW( hMenu, i, TRUE, &mi) ) in ImplGetSelectedIndex()
4814 HMENU hMenu = (HMENU) lParam; in ImplMenuChar() local
4821 int nItemCount = GetMenuItemCount( hMenu ); in ImplMenuChar()
4824 int idxSelected = ImplGetSelectedIndex( hMenu ); in ImplMenuChar()
4828 WinSalMenuItem* pSalMenuItem = ImplGetSalMenuItem( hMenu, idx % nItemCount ); in ImplMenuChar()
5070 HMENU hMenu = (HMENU) wParam; in ImplHandleMenuActivate() local
5077 WinSalMenuItem *pSalMenuItem = ImplGetSalMenuItem( hMenu, 0 ); in ImplHandleMenuActivate()
5087 pFrame->mLastActivatedhMenu = hMenu; in ImplHandleMenuActivate()
5101 HMENU hMenu = (HMENU) lParam; in ImplHandleMenuSelect() local
5104 if( !GetSalData()->IsKnownMenuHandle( hMenu ) ) in ImplHandleMenuSelect()
5112 if ( hMenu && !pFrame->mLastActivatedhMenu ) in ImplHandleMenuSelect()
5117 WinSalMenuItem *pSalMenuItem = ImplGetSalMenuItem( hMenu, nId, bByPosition ); in ImplHandleMenuSelect()
5127 pFrame->mLastActivatedhMenu = hMenu; in ImplHandleMenuSelect()
5130 if( !hMenu && nFlags == 0xFFFF ) in ImplHandleMenuSelect()
5136 if( hMenu ) in ImplHandleMenuSelect()
5141 pFrame->mSelectedhMenu = hMenu; in ImplHandleMenuSelect()
5152 if( GetMenuItemInfoW( hMenu, LOWORD(wParam), TRUE, &mi) ) in ImplHandleMenuSelect()
5158 WinSalMenuItem *pSalMenuItem = ImplGetSalMenuItem( hMenu, nId, FALSE ); in ImplHandleMenuSelect()