Changeset 2533 for trunk/src/user32/win32wmdichild.cpp
- Timestamp:
- Jan 27, 2000, 10:50:03 PM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/win32wmdichild.cpp
r2469 r2533 1 /* $Id: win32wmdichild.cpp,v 1. 19 2000-01-18 20:10:59sandervl Exp $ */1 /* $Id: win32wmdichild.cpp,v 1.20 2000-01-27 21:50:03 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, HWND hwndOS2Win)60 {61 ULONG rc, procidhwnd = -1, threadidhwnd = 0;62 63 //According to SDK docs, if app returns FALSE & window is being deactivated,64 //default processing is cancelled65 //TODO: According to Wine we should proceed anyway if window is sysmodal66 #if 067 if(SendInternalMessageA(WM_NCACTIVATE, fActivate, 0) == FALSE && !fActivate)68 {69 return 0;70 }71 #endif72 73 if(fActivate)74 {75 rc = SendInternalMessageA(WM_CHILDACTIVATE, MAKELONG((fActivate) ? WA_ACTIVE : WA_INACTIVE, fMinimized), hwnd);76 if(hwndOS2Win) {77 threadidhwnd = O32_GetWindowThreadProcessId(hwndOS2Win, &procidhwnd);78 }79 80 if(fActivate) {81 SendInternalMessageA(WM_ACTIVATEAPP, 1, dwThreadId); //activate; specify window thread id82 }83 else SendInternalMessageA(WM_ACTIVATEAPP, 0, threadidhwnd); //deactivate; specify thread id of other process84 return rc;85 }86 else return 1;87 }88 //******************************************************************************89 //******************************************************************************90 59 BOOL Win32MDIChildWindow::isMDIChild() 91 60 {
Note:
See TracChangeset
for help on using the changeset viewer.