Changeset 2426 for trunk/src/user32/new/win32wmdichild.cpp
- Timestamp:
- Jan 13, 2000, 2:54:55 PM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/new/win32wmdichild.cpp
r2292 r2426 1 /* $Id: win32wmdichild.cpp,v 1. 7 2000-01-02 19:30:45 cbratschiExp $ */1 /* $Id: win32wmdichild.cpp,v 1.8 2000-01-13 13:54:55 sandervl Exp $ */ 2 2 /* 3 3 * Win32 MDI Child Window Class for OS/2 … … 57 57 //****************************************************************************** 58 58 //****************************************************************************** 59 ULONG Win32MDIChildWindow::MsgActivate(BOOL fActivate, BOOL fMinimized, HWND hwnd )60 { 61 ULONG rc, curprocid,procidhwnd = -1, threadidhwnd = 0;59 ULONG Win32MDIChildWindow::MsgActivate(BOOL fActivate, BOOL fMinimized, HWND hwnd, HWND hwndOS2Win) 60 { 61 ULONG rc, procidhwnd = -1, threadidhwnd = 0; 62 62 63 63 //According to SDK docs, if app returns FALSE & window is being deactivated, 64 64 //default processing is cancelled 65 65 //TODO: According to Wine we should proceed anyway if window is sysmodal 66 #if 0 66 67 if(SendInternalMessageA(WM_NCACTIVATE, fActivate, 0) == FALSE && !fActivate) 67 68 { 68 69 return 0; 69 70 } 71 #endif 72 70 73 if(fActivate) 71 74 { 72 75 rc = SendInternalMessageA(WM_CHILDACTIVATE, MAKELONG((fActivate) ? WA_ACTIVE : WA_INACTIVE, fMinimized), hwnd); 73 curprocid = GetCurrentProcessId();74 if(hwnd) {75 threadidhwnd = GetWindowThreadProcessId(hwnd, &procidhwnd);76 } 77 78 if(curprocid != procidhwnd && fActivate) {79 SendInternalMessageA(WM_ACTIVATEAPP, 1, threadidhwnd);80 }76 if(hwndOS2Win) { 77 threadidhwnd = O32_GetWindowThreadProcessId(hwndOS2Win, &procidhwnd); 78 } 79 80 if(fActivate) { 81 SendInternalMessageA(WM_ACTIVATEAPP, 1, dwThreadId); //activate; specify window thread id 82 } 83 else SendInternalMessageA(WM_ACTIVATEAPP, 0, threadidhwnd); //deactivate; specify thread id of other process 81 84 return rc; 82 85 }
Note:
See TracChangeset
for help on using the changeset viewer.