Changeset 5725 for trunk/src/user32
- Timestamp:
- May 17, 2001, 11:50:30 AM (24 years ago)
- Location:
- trunk/src/user32
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/menu.cpp
r4865 r5725 1 /* $Id: menu.cpp,v 1. 29 2001-01-01 11:48:10sandervl Exp $*/1 /* $Id: menu.cpp,v 1.30 2001-05-17 09:50:29 sandervl Exp $*/ 2 2 /* 3 3 * Menu functions … … 2083 2083 if (submenu->hWnd == MENU_GetTopPopupWnd() ) 2084 2084 { 2085 ShowWindow( submenu->hWnd, SW_HIDE ); 2085 DestroyWindow( submenu->hWnd ); 2086 submenu->hWnd = 0; 2087 // ShowWindow( submenu->hWnd, SW_HIDE ); 2086 2088 uSubPWndLevel = 0; 2087 2089 } … … 3036 3038 if (menu && menu->wFlags & MF_POPUP) 3037 3039 { 3038 ShowWindow( menu->hWnd, SW_HIDE ); 3039 uSubPWndLevel = 0; 3040 DestroyWindow( menu->hWnd ); 3041 menu->hWnd = 0; 3042 // ShowWindow( menu->hWnd, SW_HIDE ); 3043 uSubPWndLevel = 0; 3040 3044 } 3041 3045 MENU_SelectItem( mt.hOwnerWnd, mt.hTopMenu, NO_SELECTED_ITEM, FALSE, 0 ); -
trunk/src/user32/win32dlg.cpp
r5685 r5725 1 /* $Id: win32dlg.cpp,v 1.6 2 2001-05-11 08:39:44sandervl Exp $ */1 /* $Id: win32dlg.cpp,v 1.63 2001-05-17 09:50:30 sandervl Exp $ */ 2 2 /* 3 3 * Win32 Dialog Code for OS/2 … … 253 253 254 254 HWND hwndPreInitFocus = GetFocus(); 255 if(SendInternalMessageA(WM_INITDIALOG, (WPARAM)hwndFocus, param)) { 256 SetFocus(hwndFocus); 255 if(SendInternalMessageA(WM_INITDIALOG, (WPARAM)hwndFocus, param)) 256 { 257 /* check where the focus is again, 258 * some controls status might have changed in WM_INITDIALOG */ 259 hwndFocus = GetNextDlgTabItem( getWindowHandle(), 0, FALSE ); 260 if(GetFocus() != hwndFocus) { 261 SetFocus(hwndFocus); 262 } 257 263 } 258 264 else … … 260 266 /* If the dlgproc has returned FALSE (indicating handling of keyboard focus) 261 267 but the focus has not changed, set the focus where we expect it. */ 262 263 268 if ( (getStyle() & WS_VISIBLE) && ( GetFocus() == hwndPreInitFocus ) ) 269 SetFocus( hwndFocus ); 264 270 } 265 271 -
trunk/src/user32/win32wbase.cpp
r5721 r5725 1 /* $Id: win32wbase.cpp,v 1.25 7 2001-05-16 07:42:26sandervl Exp $ */1 /* $Id: win32wbase.cpp,v 1.258 2001-05-17 09:50:30 sandervl Exp $ */ 2 2 /* 3 3 * Win32 Window Base Class for OS/2 … … 3094 3094 3095 3095 dprintf(("SetActiveWindow %x", getWindowHandle())); 3096 if(GetActiveWindow() == getWindowHandle()) { 3097 dprintf(("Window already active")); 3098 return getWindowHandle(); 3099 } 3096 3100 if (HOOK_IsHooked( WH_CBT )) 3097 3101 {
Note:
See TracChangeset
for help on using the changeset viewer.