Changeset 45137 in vbox for trunk/src/VBox
- Timestamp:
- Mar 22, 2013 10:52:19 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/WINNT/VBoxTray/VBoxSeamless.cpp
r44528 r45137 161 161 GetWindowText(hwnd, szWindowText, sizeof(szWindowText)); 162 162 163 DWORD pid = 0; 164 DWORD tid = GetWindowThreadProcessId(hwnd, &pid); 165 163 166 /* Filter out Windows XP shadow windows */ 164 167 /** @todo still shows inside the guest */ 165 168 if ( szWindowText[0] == 0 166 && dwStyle == (WS_POPUP|WS_VISIBLE|WS_CLIPSIBLINGS) 167 && dwExStyle == (WS_EX_LAYERED|WS_EX_TOOLWINDOW|WS_EX_TRANSPARENT|WS_EX_TOPMOST)) 169 && ( 170 (dwStyle == (WS_POPUP|WS_VISIBLE|WS_CLIPSIBLINGS) 171 && dwExStyle == (WS_EX_LAYERED|WS_EX_TOOLWINDOW|WS_EX_TRANSPARENT|WS_EX_TOPMOST)) 172 || (dwStyle == (WS_POPUP|WS_VISIBLE|WS_DISABLED|WS_CLIPSIBLINGS|WS_CLIPCHILDREN) 173 && dwExStyle == (WS_EX_TOOLWINDOW | WS_EX_TRANSPARENT | WS_EX_LAYERED | WS_EX_NOACTIVATE)) 174 || (dwStyle == (WS_POPUP|WS_VISIBLE|WS_CLIPSIBLINGS|WS_CLIPCHILDREN) 175 && dwExStyle == (WS_EX_TOOLWINDOW)) 176 )) 168 177 { 169 178 Log(("VBoxTray: Filter out shadow window style=%x exstyle=%x\n", dwStyle, dwExStyle)); 179 Log(("VBoxTray: Enum hwnd=%x rect (%d,%d) (%d,%d) (filtered)\n", hwnd, rectWindow.left, rectWindow.top, rectWindow.right, rectWindow.bottom)); 180 Log(("VBoxTray: title=%s style=%x exStyle=%x\n", szWindowText, dwStyle, dwExStyle)); 181 Log(("VBoxTray: pid=%d tid=%d\n", pid, tid)); 170 182 return TRUE; 171 183 } … … 174 186 if (strcmp(szWindowText, "Program Manager")) 175 187 { 176 Log(("VBoxTray: Enum hwnd=%x rect (%d,%d) (%d,%d) \n", hwnd, rectWindow.left, rectWindow.top, rectWindow.right, rectWindow.bottom));188 Log(("VBoxTray: Enum hwnd=%x rect (%d,%d) (%d,%d) (applying)\n", hwnd, rectWindow.left, rectWindow.top, rectWindow.right, rectWindow.bottom)); 177 189 Log(("VBoxTray: title=%s style=%x exStyle=%x\n", szWindowText, dwStyle, dwExStyle)); 190 Log(("VBoxTray: pid=%d tid=%d\n", pid, tid)); 178 191 179 192 HRGN hrgn = CreateRectRgn(0,0,0,0); … … 204 217 Log(("VBoxTray: Enum hwnd=%x rect (%d,%d) (%d,%d) (ignored)\n", hwnd, rectWindow.left, rectWindow.top, rectWindow.right, rectWindow.bottom)); 205 218 Log(("VBoxTray: title=%s style=%x\n", szWindowText, dwStyle)); 219 Log(("VBoxTray: pid=%d tid=%d\n", pid, tid)); 206 220 } 207 221 }
Note:
See TracChangeset
for help on using the changeset viewer.