Changeset 1093 for trunk/src/user32/win32wmdichild.cpp
- Timestamp:
- Sep 29, 1999, 11:16:32 AM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/win32wmdichild.cpp
r949 r1093 1 /* $Id: win32wmdichild.cpp,v 1. 1 1999-09-15 23:19:01sandervl Exp $ */1 /* $Id: win32wmdichild.cpp,v 1.2 1999-09-29 09:16:32 sandervl Exp $ */ 2 2 /* 3 3 * Win32 MDI Child Window Class for OS/2 … … 55 55 //****************************************************************************** 56 56 //****************************************************************************** 57 ULONG Win32MDIChildWindow::MsgActivate(BOOL fActivate, BOOL fMinimized, HWND hwnd) 58 { 59 ULONG rc, curprocid, procidhwnd = -1, threadidhwnd = 0; 60 61 //According to SDK docs, if app returns FALSE & window is being deactivated, 62 //default processing is cancelled 63 //TODO: According to Wine we should proceed anyway if window is sysmodal 64 if(SendInternalMessageA(WM_NCACTIVATE, fActivate, 0) == FALSE && !fActivate) 65 { 66 return 0; 67 } 68 if(fActivate) 69 { 70 rc = SendInternalMessageA(WM_CHILDACTIVATE, MAKELONG((fActivate) ? WA_ACTIVE : WA_INACTIVE, fMinimized), hwnd); 71 curprocid = GetCurrentProcessId(); 72 if(hwnd) { 73 threadidhwnd = GetWindowThreadProcessId(hwnd, &procidhwnd); 74 } 75 76 if(curprocid != procidhwnd && fActivate) { 77 SendInternalMessageA(WM_ACTIVATEAPP, 1, threadidhwnd); 78 } 79 return rc; 80 } 81 else return 1; 82 } 83 //****************************************************************************** 84 //****************************************************************************** 57 85 LRESULT Win32MDIChildWindow::DefMDIChildProcA(UINT Msg, WPARAM wParam, LPARAM lParam) 58 86 {
Note:
See TracChangeset
for help on using the changeset viewer.