- Timestamp:
- Sep 20, 2001, 2:57:15 PM (24 years ago)
- Location:
- trunk/src/user32
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/menu.cpp
r6762 r6773 1 /* $Id: menu.cpp,v 1.3 6 2001-09-19 15:39:48sandervl Exp $*/1 /* $Id: menu.cpp,v 1.37 2001-09-20 12:57:15 sandervl Exp $*/ 2 2 /* 3 3 * Menu functions … … 2519 2519 (vk == VK_RIGHT && menu->FocusedItem == menu->nItems - 1)) 2520 2520 { 2521 MDINEXTMENU next_menu; 2521 2522 HMENU hNewMenu; 2522 2523 HWND hNewWnd; 2523 2524 UINT id = 0; 2524 LRESULT l = SendMessageA( pmt->hOwnerWnd, WM_NEXTMENU, vk, 2525 (IS_SYSTEM_MENU(menu)) ? GetSubMenu(pmt->hTopMenu,0) : pmt->hTopMenu ); 2526 2527 //TRACE("%04x [%04x] -> %04x [%04x]\n", 2528 // (UINT16)pmt->hCurrentMenu, (UINT16)pmt->hOwnerWnd, LOWORD(l), HIWORD(l) ); 2529 2530 if( l == 0 ) 2525 2526 next_menu.hmenuIn = (IS_SYSTEM_MENU(menu)) ? GetSubMenu(pmt->hTopMenu,0) : pmt->hTopMenu; 2527 next_menu.hmenuNext = 0; 2528 next_menu.hwndNext = 0; 2529 2530 SendMessageW( pmt->hOwnerWnd, WM_NEXTMENU, vk, (LPARAM)&next_menu ); 2531 2532 dprintf(("%04x [%04x] -> %04x [%04x]\n", 2533 pmt->hCurrentMenu, pmt->hOwnerWnd, next_menu.hmenuNext, next_menu.hwndNext )); 2534 2535 if (!next_menu.hmenuNext || !next_menu.hwndNext) 2531 2536 { 2532 2537 hNewWnd = pmt->hOwnerWnd; … … 2559 2564 else /* application returned a new menu to switch to */ 2560 2565 { 2561 hNewMenu = LOWORD(l); hNewWnd = HIWORD(l); 2566 hNewMenu = next_menu.hmenuNext; 2567 hNewWnd = next_menu.hwndNext; 2562 2568 2563 2569 if( IsMenu(hNewMenu) && IsWindow(hNewWnd) ) -
trunk/src/user32/win32wbase.cpp
r6762 r6773 1 /* $Id: win32wbase.cpp,v 1.28 2 2001-09-19 15:39:50sandervl Exp $ */1 /* $Id: win32wbase.cpp,v 1.283 2001-09-20 12:57:15 sandervl Exp $ */ 2 2 /* 3 3 * Win32 Window Base Class for OS/2 … … 1077 1077 MAKELONG( lastHitTestVal, msg->message) ); 1078 1078 1079 dprintf2(("WM_MOUSEACTIVATE returned %d", ret)); 1079 1080 #if 0 1080 1081 if ((ret == MA_ACTIVATEANDEAT) || (ret == MA_NOACTIVATEANDEAT)) 1081 1082 eatMsg = TRUE; 1082 1083 #endif 1083 if(((ret == MA_ACTIVATE) || (ret == MA_ACTIVATEANDEAT)) 1084 //SvL: 0 is not documented, but experiments in NT4 show that 1085 // the window will get activated when it returns this. 1086 // (FreeCell is an example) 1087 if(((ret == MA_ACTIVATE) || (ret == MA_ACTIVATEANDEAT) || (ret == 0)) 1084 1088 && (hwndTop != GetForegroundWindow()) ) 1085 1089 {
Note:
See TracChangeset
for help on using the changeset viewer.