Lines Matching refs:mi
154 MENUITEMINFOW mi; in addMenuItem() local
155 memset( &mi, 0, sizeof( MENUITEMINFOW ) ); in addMenuItem()
157 mi.cbSize = sizeof( MENUITEMINFOW ); in addMenuItem()
160 mi.fMask=MIIM_TYPE; in addMenuItem()
161 mi.fType=MFT_SEPARATOR; in addMenuItem()
167 mi.fMask=MIIM_TYPE | MIIM_STATE | MIIM_ID | MIIM_DATA; in addMenuItem()
168 mi.fType=MFT_OWNERDRAW; in addMenuItem()
169 mi.fState=MFS_ENABLED; in addMenuItem()
170 mi.wID = id; in addMenuItem()
176 mi.dwItemData = (DWORD) pMyItem; in addMenuItem()
180 mi.fMask=MIIM_TYPE | MIIM_STATE | MIIM_ID | MIIM_DATA; in addMenuItem()
181 mi.fType=MFT_STRING; in addMenuItem()
182 mi.fState=MFS_ENABLED; in addMenuItem()
183 mi.wID = id; in addMenuItem()
184 mi.dwTypeData = (LPWSTR) text.getStr(); in addMenuItem()
185 mi.cch = text.getLength(); in addMenuItem()
190 mi.fState |= MFS_DEFAULT; in addMenuItem()
194 InsertMenuItemW( hMenu, pos++, TRUE, &mi ); in addMenuItem()
292 MENUITEMINFOW mi; in deleteSystrayMenu() local
295 memset( &mi, 0, sizeof( mi ) ); in deleteSystrayMenu()
296 mi.cbSize = sizeof( mi ); in deleteSystrayMenu()
297 mi.fMask = MIIM_DATA; in deleteSystrayMenu()
299 while( GetMenuItemInfoW( hMenu, pos++, true, &mi ) ) in deleteSystrayMenu()
301 pMyItem = (MYITEM*) mi.dwItemData; in deleteSystrayMenu()
307 mi.fMask = MIIM_DATA; in deleteSystrayMenu()