Changeset 45676 in vbox for trunk/src/VBox/Additions/WINNT/VBoxTray/VBoxSeamless.cpp
- Timestamp:
- Apr 23, 2013 10:26:14 AM (12 years ago)
- svn:sync-xref-src-repo-rev:
- 85200
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/WINNT/VBoxTray/VBoxSeamless.cpp
r45644 r45676 155 155 if (GetWindowRect(hwnd, &rectWindow)) 156 156 { 157 rectVisible = rectWindow;158 159 157 char szWindowText[256]; 160 158 szWindowText[0] = 0; 159 OSVERSIONINFO OSinfo; 160 HWND hStart = NULL; 161 161 GetWindowText(hwnd, szWindowText, sizeof(szWindowText)); 162 OSinfo.dwOSVersionInfoSize = sizeof (OSinfo); 163 GetVersionEx (&OSinfo); 164 if (OSinfo.dwMajorVersion >= 6) 165 { 166 hStart = ::FindWindowEx(GetDesktopWindow(), NULL, "Button", "Start"); 167 if ( hwnd == hStart && szWindowText != NULL 168 && !(strcmp(szWindowText, "Start")) 169 ) 170 { 171 /* for vista and above. To solve the issue of small bar above 172 * the Start button when mouse is hovered over the start button in seamless mode. 173 * Difference of 7 is observed in Win 7 platform between the dimensionsof rectangle with Start title and its shadow. 174 */ 175 rectWindow.top += 7; 176 rectWindow.bottom -=7; 177 } 178 } 179 rectVisible = rectWindow; 162 180 163 181 #ifdef LOG_ENABLED
Note:
See TracChangeset
for help on using the changeset viewer.