Changeset 45644 in vbox for trunk/src/VBox/Additions/WINNT/VBoxTray
- Timestamp:
- Apr 19, 2013 1:43:02 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/WINNT/VBoxTray/VBoxSeamless.cpp
r45363 r45644 144 144 DWORD dwStyle, dwExStyle; 145 145 RECT rectWindow, rectVisible; 146 OSVERSIONINFO OSinfo;147 148 OSinfo.dwOSVersionInfoSize = sizeof (OSinfo);149 GetVersionEx (&OSinfo);150 146 151 147 dwStyle = GetWindowLong(hwnd, GWL_STYLE); … … 203 199 { 204 200 Log(("VBoxTray: GetWindowRgn failed with rc=%d\n", GetLastError())); 205 206 /* for vista and above. To solve the issue of small bar above the Start button */ 207 if (OSinfo.dwMajorVersion >= 6) 208 { 209 char szWindowTextStart[256]; 210 HWND hStart = NULL; 211 hStart = ::FindWindowEx(GetDesktopWindow(), NULL, "Button", NULL); 212 GetWindowText(hwnd, szWindowText, sizeof(szWindowText)); 213 GetWindowText(hStart,szWindowTextStart, sizeof(szWindowTextStart)); 214 if ( hwnd == hStart && szWindowText != NULL 215 && !(strcmp(szWindowText, szWindowTextStart)) 216 ) 217 { 218 LogRel(("VboxTray/Seamless: Start found.\n")); 219 SetRectRgn(hrgn, rectVisible.left, rectVisible.top +7, rectVisible.right, rectVisible.bottom); 220 } 221 else 222 SetRectRgn(hrgn, rectVisible.left, rectVisible.top , rectVisible.right , rectVisible.bottom); 223 } 224 else 225 SetRectRgn(hrgn, rectVisible.left, rectVisible.top , rectVisible.right , rectVisible.bottom); 201 SetRectRgn(hrgn, rectVisible.left, rectVisible.top, rectVisible.right, rectVisible.bottom); 226 202 } 227 203 else
Note:
See TracChangeset
for help on using the changeset viewer.