/reactos/base/applications/taskmgr/ |
H A D | applpage.c | 600 HMENU hSubMenu; in ApplicationPageShowContextMenu1() local 606 hSubMenu = GetSubMenu(hMenu, 0); in ApplicationPageShowContextMenu1() 618 HMENU hSubMenu; in ApplicationPageShowContextMenu2() local 624 hSubMenu = GetSubMenu(hMenu, 0); in ApplicationPageShowContextMenu2() 631 EnableMenuItem(hSubMenu, ID_WINDOWS_MINIMIZE, MF_BYCOMMAND|MF_ENABLED); in ApplicationPageShowContextMenu2() 632 EnableMenuItem(hSubMenu, ID_WINDOWS_MAXIMIZE, MF_BYCOMMAND|MF_ENABLED); in ApplicationPageShowContextMenu2() 634 EnableMenuItem(hSubMenu, ID_WINDOWS_BRINGTOFRONT, MF_BYCOMMAND|MF_ENABLED); in ApplicationPageShowContextMenu2() 641 EnableMenuItem(hSubMenu, ID_WINDOWS_MINIMIZE, MF_BYCOMMAND|MF_ENABLED); in ApplicationPageShowContextMenu2() 642 EnableMenuItem(hSubMenu, ID_WINDOWS_MAXIMIZE, MF_BYCOMMAND|MF_ENABLED); in ApplicationPageShowContextMenu2() 643 EnableMenuItem(hSubMenu, ID_WINDOWS_CASCADE, MF_BYCOMMAND|MF_ENABLED); in ApplicationPageShowContextMenu2() [all …]
|
H A D | taskmgr.c | 934 HMENU hSubMenu; in TaskManager_OnTabWndSelChange() local 943 hSubMenu = GetSubMenu(hViewMenu, i); in TaskManager_OnTabWndSelChange() 944 if (hSubMenu) in TaskManager_OnTabWndSelChange() 945 DestroyMenu(hSubMenu); in TaskManager_OnTabWndSelChange() 1025 hSubMenu = CreatePopupMenu(); in TaskManager_OnTabWndSelChange() 1028 AppendMenuW(hSubMenu, MF_STRING, ID_VIEW_CPUHISTORY_ONEGRAPHALL, szTemp); in TaskManager_OnTabWndSelChange() 1031 AppendMenuW(hSubMenu, MF_STRING, ID_VIEW_CPUHISTORY_ONEGRAPHPERCPU, szTemp); in TaskManager_OnTabWndSelChange() 1034 AppendMenuW(hViewMenu, MF_STRING|MF_POPUP, (UINT_PTR) hSubMenu, szTemp); in TaskManager_OnTabWndSelChange() 1037 …CheckMenuRadioItem(hSubMenu, ID_VIEW_CPUHISTORY_ONEGRAPHALL, ID_VIEW_CPUHISTORY_ONEGRAPHPERCPU, ID… in TaskManager_OnTabWndSelChange() 1039 …CheckMenuRadioItem(hSubMenu, ID_VIEW_CPUHISTORY_ONEGRAPHALL, ID_VIEW_CPUHISTORY_ONEGRAPHPERCPU, ID… in TaskManager_OnTabWndSelChange()
|
H A D | procpage.c | 378 HMENU hSubMenu; in ProcessPageShowContextMenu() local 397 hSubMenu = GetSubMenu(hMenu, 0); in ProcessPageShowContextMenu() 398 hPriorityMenu = GetSubMenu(hSubMenu, 4); in ProcessPageShowContextMenu() 405 RemoveMenu(hSubMenu, ID_PROCESS_PAGE_SETAFFINITY, MF_BYCOMMAND); in ProcessPageShowContextMenu() 435 EnableMenuItem(hSubMenu, ID_PROCESS_PAGE_DEBUG, MF_BYCOMMAND|MF_DISABLED|MF_GRAYED); in ProcessPageShowContextMenu() 438 EnableMenuItem(hSubMenu, ID_PROCESS_PAGE_DEBUG, MF_BYCOMMAND|MF_DISABLED|MF_GRAYED); in ProcessPageShowContextMenu() 442 EnableMenuItem(hSubMenu, ID_PROCESS_PAGE_DEBUG, MF_BYCOMMAND|MF_DISABLED|MF_GRAYED); in ProcessPageShowContextMenu() 444 …TrackPopupMenu(hSubMenu, TPM_LEFTALIGN|TPM_TOPALIGN|TPM_LEFTBUTTON, pt.x, pt.y, 0, hMainWnd, NULL); in ProcessPageShowContextMenu()
|
/reactos/win32ss/user/ntuser/ |
H A D | accelerator.c | 52 HMENU hMenu, hSubMenu; in co_IntTranslateAccelerator() local 101 hSubMenu = NULL; in co_IntTranslateAccelerator() 107 hSubMenu = UserHMGetHandle(MenuObject); in co_IntTranslateAccelerator() 115 hSubMenu = hMenu; /* system menu is a popup menu */ in co_IntTranslateAccelerator() 121 hSubMenu = UserHMGetHandle(MenuObject); in co_IntTranslateAccelerator() 132 if (hSubMenu) in co_IntTranslateAccelerator() 134 nPos = IntFindSubMenu(&hMenu, hSubMenu); in co_IntTranslateAccelerator() 135 TRACE("hSysMenu = %p, hSubMenu = %p, nPos = %u\n", hMenu, hSubMenu, nPos); in co_IntTranslateAccelerator() 136 co_IntSendMessage(hWnd, WM_INITMENUPOPUP, (WPARAM)hSubMenu, MAKELPARAM(nPos, TRUE)); in co_IntTranslateAccelerator()
|
H A D | menu.h | 108 HMENU hSubMenu; member
|
H A D | menu.c | 994 lpmii->hSubMenu = (MenuItem->spSubMenu ? UserHMGetHandle(MenuItem->spSubMenu) : NULL); in IntGetMenuItemInfo() 1114 if (lpmii->hSubMenu) in IntSetMenuItemInfo() 1116 SubMenuObject = UserGetMenuObject(lpmii->hSubMenu); in IntSetMenuItemInfo() 1117 if ( SubMenuObject && !(UserObjectInDestroy(lpmii->hSubMenu)) ) in IntSetMenuItemInfo() 5389 ItemInfo.hSubMenu = UserHMGetHandle(NewMenu); in MENU_GetSystemMenu() 6082 HMENU hSubMenu) in NtUserGetMenuIndex() argument 6093 !(SubMenu = UserGetMenuObject(hSubMenu)) ) in NtUserGetMenuIndex()
|
/reactos/base/shell/explorer/ |
H A D | util.cpp | 36 HMENU hMenu, hSubMenu = NULL; in LoadPopupMenu() local 41 hSubMenu = GetSubMenu(hMenu, 0); in LoadPopupMenu() 42 if ((hSubMenu != NULL) && in LoadPopupMenu() 45 hSubMenu = NULL; in LoadPopupMenu() 51 return hSubMenu; in LoadPopupMenu() 66 return mii.hSubMenu; in FindSubMenu()
|
/reactos/dll/win32/shell32/wine/ |
H A D | control.c | 281 HMENU hMenu, hSubMenu; in Control_WndProc_Create() local 314 hSubMenu = GetSubMenu(hMenu, 0); in Control_WndProc_Create() 365 hSubMenu = GetSubMenu(hMenu, 1); in Control_WndProc_Create() 374 HMENU hMenu, hSubMenu; in Control_FreeCPlItems() local 384 hSubMenu = GetSubMenu(hMenu, 0); in Control_FreeCPlItems() 386 if (!hSubMenu) in Control_FreeCPlItems() 404 HMENU hMenu, hSubMenu; in Control_UpdateListViewStyle() local 410 hSubMenu = GetSubMenu(hMenu, 1); in Control_UpdateListViewStyle() 418 HMENU hMenu, hSubMenu; in Control_GetCPlItem_From_MenuID() local 427 hSubMenu = GetSubMenu(hMenu, 0); in Control_GetCPlItem_From_MenuID() [all …]
|
H A D | shlmenu.c | 342 mii.hSubMenu = hMenuPopup; in FileMenu_AppendItemW() 687 if (mii.hSubMenu) in FileMenu_DeleteAllItems() 688 FileMenu_Destroy(mii.hSubMenu); in FileMenu_DeleteAllItems() 715 if ( mii.hSubMenu ) in FileMenu_DeleteItemByCmd() 738 if ( mii.hSubMenu ) in FileMenu_DeleteItemByIndex() 919 else if (miiSrc.hSubMenu) in Shell_MergeMenus() 935 hmSubMenu = miiSrc.hSubMenu; in Shell_MergeMenus() 937 miiSrc.hSubMenu = CreatePopupMenu(); in Shell_MergeMenus() 939 if (!miiSrc.hSubMenu) return(uIDMax); in Shell_MergeMenus() 941 …uTemp = Shell_MergeMenus(miiSrc.hSubMenu, hmSubMenu, 0, uIDAdjust, uIDAdjustMax, uFlags & MM_SUBME… in Shell_MergeMenus()
|
/reactos/subsystems/mvdm/ntvdm/console/ |
H A D | console.c | 63 HMENU hSubMenu; in AppendMenuItems() local 76 hSubMenu = CreatePopupMenu(); in AppendMenuItems() 77 if (hSubMenu != NULL) in AppendMenuItems() 79 AppendMenuItems(hSubMenu, Items[i].SubMenu); in AppendMenuItems() 83 (UINT_PTR)hSubMenu, in AppendMenuItems() 86 DestroyMenu(hSubMenu); in AppendMenuItems()
|
/reactos/dll/win32/shell32/ |
H A D | CSendToMenu.cpp | 294 HMENU hSubMenu = CreateMenu(); in QueryContextMenu() local 295 if (!hSubMenu) in QueryContextMenu() 301 UINT cItems = InsertSendToItems(hSubMenu, idCmdFirst, 0); in QueryContextMenu() 312 mii.hSubMenu = hSubMenu; in QueryContextMenu() 320 m_hSubMenu = hSubMenu; in QueryContextMenu()
|
/reactos/win32ss/user/user32/windows/ |
H A D | menu.c | 271 HMENU hSubMenu = UserHMGetHandle(pSubMenu); in GetMenuItemInfo_common() local 272 lpmii->hSubMenu = hSubMenu; in GetMenuItemInfo_common() 278 lpmii->hSubMenu = 0; in GetMenuItemInfo_common() 413 HMENU hSubMenu; in MENU_ParseResource() local 436 hSubMenu = CreatePopupMenu(); in MENU_ParseResource() 437 if(!hSubMenu) return NULL; in MENU_ParseResource() 487 mii.hSubMenu = CreatePopupMenu(); in MENUEX_ParseResource() 488 if (!mii.hSubMenu) in MENUEX_ParseResource() 497 DestroyMenu(mii.hSubMenu); in MENUEX_ParseResource() 566 pmii->hSubMenu = (HMENU)id; in MENU_mnu2mnuii() [all …]
|
/reactos/modules/rostests/winetests/oledlg/ |
H A D | main.c | 373 ok(info.hSubMenu == NULL, "got submenu %p\n", info.hSubMenu); in test_OleUIAddVerbMenu() 393 ok(info.hSubMenu == NULL, "got submenu %p\n", info.hSubMenu); in test_OleUIAddVerbMenu() 416 ok(info.hSubMenu == NULL, "got submenu %p\n", info.hSubMenu); in test_OleUIAddVerbMenu()
|
/reactos/modules/rostests/apitests/shell32/ |
H A D | menu.cpp | 414 HMENU hSubMenu = CreatePopupMenu(); in START_TEST() local 415 AppendMenuW(hSubMenu, 0,0, L"Submenu item1"); in START_TEST() 416 AppendMenuW(hSubMenu, 0,0, L"Submenu item2"); in START_TEST() 422 iteminfo.hSubMenu = hSubMenu; in START_TEST()
|
/reactos/dll/cpl/desk/ |
H A D | desk.c | 55 HMENU hMenu, hSubMenu = NULL; in LoadPopupMenu() local 62 hSubMenu = GetSubMenu(hMenu, in LoadPopupMenu() 64 if (hSubMenu != NULL && in LoadPopupMenu() 69 hSubMenu = NULL; in LoadPopupMenu() 75 return hSubMenu; in LoadPopupMenu()
|
/reactos/modules/rostests/winetests/user32/ |
H A D | menu.c | 663 ok( mii.hSubMenu == hsubmenu, "submenu is %p\n", mii.hSubMenu); in test_subpopup_locked_by_menu() 681 ok( mii.hSubMenu == hsubmenu, "submenu is %p\n", mii.hSubMenu); in test_subpopup_locked_by_menu() 1012 ok(mii.hSubMenu == 0, "expected 0, got %p\n", mii.hSubMenu); in test_menu_bmp_and_string() 1026 ok(mii.hSubMenu == 0, "expected 0, got %p\n", mii.hSubMenu); in test_menu_bmp_and_string() 3963 ok(mii.hSubMenu == 0, "expected 0, got %p\n", mii.hSubMenu); in test_AppendMenu() 3979 ok(mii.hSubMenu == 0, "expected 0, got %p\n", mii.hSubMenu); in test_AppendMenu() 3997 ok(mii.hSubMenu == 0, "expected 0, got %p\n", mii.hSubMenu); in test_AppendMenu() 4030 ok(mii.hSubMenu == 0, "expected 0, got %p\n", mii.hSubMenu); in test_AppendMenu() 4048 ok(mii.hSubMenu == 0, "expected 0, got %p\n", mii.hSubMenu); in test_AppendMenu() 4067 ok(mii.hSubMenu == 0, "expected 0, got %p\n", mii.hSubMenu); in test_AppendMenu() [all …]
|
H A D | generated.c | 1902 TEST_FIELD_SIZE (MENUITEMINFOA, hSubMenu, 8) in test_pack_MENUITEMINFOA() 1903 TEST_FIELD_ALIGN (MENUITEMINFOA, hSubMenu, 8) in test_pack_MENUITEMINFOA() 1904 TEST_FIELD_OFFSET(MENUITEMINFOA, hSubMenu, 24) in test_pack_MENUITEMINFOA() 1945 TEST_FIELD_SIZE (MENUITEMINFOW, hSubMenu, 8) in test_pack_MENUITEMINFOW() 1946 TEST_FIELD_ALIGN (MENUITEMINFOW, hSubMenu, 8) in test_pack_MENUITEMINFOW() 1947 TEST_FIELD_OFFSET(MENUITEMINFOW, hSubMenu, 24) in test_pack_MENUITEMINFOW() 5406 TEST_FIELD_SIZE (MENUITEMINFOA, hSubMenu, 4) in test_pack_MENUITEMINFOA() 5407 TEST_FIELD_ALIGN (MENUITEMINFOA, hSubMenu, 4) in test_pack_MENUITEMINFOA() 5408 TEST_FIELD_OFFSET(MENUITEMINFOA, hSubMenu, 20) in test_pack_MENUITEMINFOA() 5449 TEST_FIELD_SIZE (MENUITEMINFOW, hSubMenu, 4) in test_pack_MENUITEMINFOW() [all …]
|
/reactos/dll/win32/shell32/shellmenu/ |
H A D | CStartMenu.cpp | 182 mii.hSubMenu = ::CreatePopupMenu(); in AddOrSetMenuItem() 322 UpdateSettingsMenu(mii.hSubMenu); in OnGetSubMenu() 324 hr = pShellMenu->SetMenu(mii.hSubMenu, NULL, SMSET_BOTTOM); in OnGetSubMenu() 335 hr = pShellMenu->SetMenu(mii.hSubMenu, NULL, SMSET_BOTTOM); in OnGetSubMenu()
|
/reactos/modules/rosapps/applications/devutils/shlextdbg/ |
H A D | shlextdbg.cpp | 210 mii.hSubMenu = NULL; in DumpMenu() 220 wprintf(L"%s%s", mii.hSubMenu ? L">" : L"|", sep ? L"----------" : buf); in DumpMenu() 227 if (mii.hSubMenu && recurse) in DumpMenu() 230 … SHForwardContextMenuMsg(pCM, WM_INITMENUPOPUP, (WPARAM)mii.hSubMenu, LOWORD(i), NULL, TRUE); in DumpMenu() 231 DumpMenu(mii.hSubMenu, IdOffset, pCM, FakeInit, Indent + 1); in DumpMenu()
|
/reactos/win32ss/user/user32/misc/ |
H A D | stubs.c | 463 DWORD WINAPI GetMenuIndex(HMENU hMenu, HMENU hSubMenu) in GetMenuIndex() argument 465 return NtUserGetMenuIndex(hMenu, hSubMenu); in GetMenuIndex()
|
/reactos/sdk/include/reactos/ |
H A D | shellutils.h | 525 … has submenu=%s)\n", padding, i, mii.wID, mii.hbmpItem, mii.fState, mii.hSubMenu ? "TRUE" : "FALSE… in DbgDumpMenuInternal() 529 …as submenu=%s)\n", padding, i, mii.wID, mii.dwTypeData, mii.fState, mii.hSubMenu ? "TRUE" : "FALSE… in DbgDumpMenuInternal() 531 if (mii.hSubMenu) in DbgDumpMenuInternal() 532 DbgDumpMenuInternal(mii.hSubMenu, padding, padlevel + 2); in DbgDumpMenuInternal()
|
/reactos/dll/win32/ieframe/ |
H A D | iexplore.c | 133 if(item.hSubMenu) in get_menu_item_count() 134 count += get_menu_item_count(item.hSubMenu); in get_menu_item_count() 215 item.hSubMenu = CreatePopupMenu(); in add_favs_to_menu() 217 add_favs_to_menu(favmenu, item.hSubMenu, path); in add_favs_to_menu()
|
/reactos/win32ss/user/winsrv/consrv/frontends/gui/ |
H A D | conwnd.c | 193 HMENU hSubMenu; in AppendMenuItems() local 206 hSubMenu = CreatePopupMenu(); in AppendMenuItems() 207 if (hSubMenu != NULL) in AppendMenuItems() 209 AppendMenuItems(hSubMenu, Items[i].SubMenu); in AppendMenuItems() 213 (UINT_PTR)hSubMenu, in AppendMenuItems() 216 DestroyMenu(hSubMenu); in AppendMenuItems()
|
/reactos/modules/rosapps/applications/sysutils/fontsub/ |
H A D | fontsub.cpp | 1424 HMENU hSubMenu = GetSubMenu(hMenu, 0); in MainWnd_OnContextMenu() local 1425 if (hSubMenu == NULL) in MainWnd_OnContextMenu() 1429 TrackPopupMenu(hSubMenu, TPM_LEFTALIGN | TPM_RIGHTBUTTON, in MainWnd_OnContextMenu()
|
/reactos/base/applications/mspaint/ |
H A D | main.cpp | 1319 HMENU hSubMenu = ::GetSubMenu(hMenu, iSubMenu); in TrackPopupMenu() local 1322 INT_PTR id = ::TrackPopupMenu(hSubMenu, TPM_RIGHTBUTTON | TPM_RETURNCMD, in TrackPopupMenu()
|