Changeset 7887 for trunk/src/user32/window.cpp
- Timestamp:
- Feb 12, 2002, 2:10:14 PM (24 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/window.cpp
r7875 r7887 1 /* $Id: window.cpp,v 1.11 8 2002-02-11 16:05:59sandervl Exp $ */1 /* $Id: window.cpp,v 1.119 2002-02-12 13:10:14 sandervl Exp $ */ 2 2 /* 3 3 * Win32 window apis for OS/2 … … 732 732 Win32BaseWindow *oldfocuswnd; 733 733 HWND lastFocus, lastFocus_W, hwnd_O, hwndTopParent; 734 BOOL activate ;734 BOOL activate, ret; 735 735 TEB *teb; 736 736 … … 770 770 if(HOOK_CallHooksA(WH_CBT, HCBT_SETFOCUS, hwnd, (LPARAM)lastFocus_W)) { 771 771 dprintf(("hook cancelled SetFocus call!")); 772 RELEASE_WNDOBJ(window); 772 773 return 0; 773 774 } … … 781 782 //mp2 = top parent if activation required 782 783 OSLibPostMessageDirect(hwnd_O, WIN32APP_SETFOCUSMSG, hwnd, (activate) ? hwndTopParent : 0); 784 RELEASE_WNDOBJ(window); 783 785 return lastFocus_W; 784 786 } … … 787 789 788 790 //NOTE: Don't always activate the window or else the z-order will be changed!! 789 return (OSLibWinSetFocus(OSLIB_HWND_DESKTOP, hwnd_O, activate)) ? lastFocus_W : 0; 791 ret = (OSLibWinSetFocus(OSLIB_HWND_DESKTOP, hwnd_O, activate)) ? lastFocus_W : 0; 792 RELEASE_WNDOBJ(window); 793 return ret; 790 794 } 791 795 //******************************************************************************
Note:
See TracChangeset
for help on using the changeset viewer.