Lines Matching refs:pSalMenuItem
90 WinSalMenuItem *pSalMenuItem = new WinSalMenuItem(); in CreateMenuItem() local
91 memset( &pSalMenuItem->mInfo, 0, sizeof( MENUITEMINFOW ) ); in CreateMenuItem()
92 pSalMenuItem->mInfo.cbSize = sizeof( MENUITEMINFOW ); in CreateMenuItem()
97 pSalMenuItem->mInfo.fMask = MIIM_TYPE; in CreateMenuItem()
98 pSalMenuItem->mInfo.fType = MFT_SEPARATOR; in CreateMenuItem()
103 pSalMenuItem->mText = pItemData->aText; in CreateMenuItem()
104 pSalMenuItem->mpMenu = pItemData->pMenu; in CreateMenuItem()
105 …pSalMenuItem->maBitmap= !!pItemData->aImage ? pItemData->aImage.GetBitmapEx().GetBitmap() : Bitmap… in CreateMenuItem()
106 pSalMenuItem->mnId = pItemData->nId; in CreateMenuItem()
109 pSalMenuItem->mText.SearchAndReplace( '~', '&' ); in CreateMenuItem()
111 pSalMenuItem->mInfo.fMask = MIIM_TYPE | MIIM_STATE | MIIM_ID | MIIM_DATA; in CreateMenuItem()
112 pSalMenuItem->mInfo.fType = MFT_STRING; in CreateMenuItem()
115 pSalMenuItem->mInfo.fType |= MFT_OWNERDRAW; in CreateMenuItem()
116 pSalMenuItem->mInfo.fState = MFS_ENABLED; in CreateMenuItem()
118 pSalMenuItem->mInfo.dwTypeData = (LPWSTR) pSalMenuItem->mText.GetBuffer(); in CreateMenuItem()
119 pSalMenuItem->mInfo.cch = pSalMenuItem->mText.Len(); in CreateMenuItem()
121 pSalMenuItem->mInfo.wID = pItemData->nId; in CreateMenuItem()
122 pSalMenuItem->mInfo.dwItemData = (ULONG_PTR) pSalMenuItem; // user data in CreateMenuItem()
125 return pSalMenuItem; in CreateMenuItem()
128 void WinSalInstance::DestroyMenuItem( SalMenuItem* pSalMenuItem ) in DestroyMenuItem() argument
130 delete pSalMenuItem; in DestroyMenuItem()
194 void WinSalMenu::InsertItem( SalMenuItem* pSalMenuItem, unsigned nPos ) in InsertItem() argument
196 if( pSalMenuItem ) in InsertItem()
198 WinSalMenuItem* pWItem = static_cast<WinSalMenuItem*>(pSalMenuItem); in InsertItem()
221 WinSalMenuItem *pSalMenuItem = NULL; in RemoveItem() local
230 pSalMenuItem = (WinSalMenuItem *) mi.dwItemData; in RemoveItem()
236 if( pSalMenuItem ) in RemoveItem()
237 pSalMenuItem->mpSalMenu = NULL; in RemoveItem()
248 WinSalMenuItem *pSalMenuItem = NULL; in ImplRemoveItemById() local
257 pSalMenuItem = (WinSalMenuItem *) mi.dwItemData; in ImplRemoveItemById()
263 if( pSalMenuItem ) in ImplRemoveItemById()
264 pSalMenuItem->mpSalMenu = NULL; in ImplRemoveItemById()
269 void WinSalMenu::SetSubMenu( SalMenuItem* pSalMenuItem, SalMenu* pSubMenu, unsigned nPos ) in SetSubMenu() argument
271 if( pSalMenuItem ) in SetSubMenu()
273 WinSalMenuItem* pWMenuItem = static_cast<WinSalMenuItem*>(pSalMenuItem); in SetSubMenu()
309 void WinSalMenu::SetItemImage( unsigned /*nPos*/, SalMenuItem* pSalMenuItem, const Image& rImage ) in SetItemImage() argument
311 if( pSalMenuItem ) in SetItemImage()
313 WinSalMenuItem* pWItem = static_cast<WinSalMenuItem*>(pSalMenuItem); in SetItemImage()
321 void WinSalMenu::SetItemText( unsigned nPos, SalMenuItem* pSalMenuItem, const XubString& rText ) in SetItemText() argument
323 if( pSalMenuItem ) in SetItemText()
325 WinSalMenuItem* pWItem = static_cast<WinSalMenuItem*>(pSalMenuItem); in SetItemText()
353 void WinSalMenu::SetAccelerator( unsigned nPos, SalMenuItem* pSalMenuItem, const KeyCode&, const Xu… in SetAccelerator() argument
355 if( pSalMenuItem ) in SetAccelerator()
357 WinSalMenuItem* pWItem = static_cast<WinSalMenuItem*>(pSalMenuItem); in SetAccelerator()