Changeset 3816 in vbox for trunk/src/VBox/Additions/WINNT
- Timestamp:
- Jul 24, 2007 2:11:14 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/WINNT/VBoxHook/VBoxHook.cpp
r3800 r3816 99 99 PVBOX_ENUM_PARAM lpParam = (PVBOX_ENUM_PARAM)lParam; 100 100 DWORD dwStyle, dwExStyle; 101 RECT rect , rectVisible;101 RECT rectWindow, rectVisible; 102 102 103 103 dwStyle = GetWindowLong(hwnd, GWL_STYLE); … … 109 109 dprintf(("VBoxEnumFunc %x\n", hwnd)); 110 110 /* Only visible windows that are present on the desktop are interesting here */ 111 if ( GetWindowRect(hwnd, &rect )112 && IntersectRect(&rectVisible, &lpParam->rect, &rect ))111 if ( GetWindowRect(hwnd, &rectWindow) 112 && IntersectRect(&rectVisible, &lpParam->rect, &rectWindow)) 113 113 { 114 114 char szWindowText[256]; … … 129 129 if (strcmp(szWindowText, "Program Manager")) 130 130 { 131 dprintf(("Enum hwnd=%x rect (%d,%d) (%d,%d)\n", hwnd, rect .left, rect.top, rect.right, rect.bottom));131 dprintf(("Enum hwnd=%x rect (%d,%d) (%d,%d)\n", hwnd, rectWindow.left, rectWindow.top, rectWindow.right, rectWindow.bottom)); 132 132 dprintf(("title=%s style=%x\n", szWindowText, dwStyle)); 133 133 … … 142 142 } 143 143 else 144 { 144 145 /* this region is relative to the window origin instead of the desktop origin */ 145 OffsetRgn(hrgn, rect Visible.left, rectVisible.top);146 146 OffsetRgn(hrgn, rectWindow.left, rectWindow.top); 147 } 147 148 if (lpParam->hrgn) 148 149 { … … 156 157 else 157 158 { 158 dprintf(("Enum hwnd=%x rect (%d,%d) (%d,%d) (ignored)\n", hwnd, rect .left, rect.top, rect.right, rect.bottom));159 dprintf(("Enum hwnd=%x rect (%d,%d) (%d,%d) (ignored)\n", hwnd, rectWindow.left, rectWindow.top, rectWindow.right, rectWindow.bottom)); 159 160 dprintf(("title=%s style=%x\n", szWindowText, dwStyle)); 160 161 } … … 225 226 VBoxHandleWinEvent, 226 227 0, 0, 227 WINEVENT_INCONTEXT | WINEVENT_SKIPOWNPROCESS);228 WINEVENT_INCONTEXT); 228 229 229 230 hEventHook[1] = SetWinEventHook(EVENT_OBJECT_CREATE, EVENT_OBJECT_HIDE, … … 231 232 VBoxHandleWinEvent, 232 233 0, 0, 233 WINEVENT_INCONTEXT | WINEVENT_SKIPOWNPROCESS);234 WINEVENT_INCONTEXT); 234 235 return !!hEventHook[0]; 235 236 }
Note:
See TracChangeset
for help on using the changeset viewer.