[Bug 13591] Popup Window created out of screen.
wine-bugs at winehq.org
wine-bugs at winehq.org
Sun Jun 1 10:51:25 CDT 2008
http://bugs.winehq.org/show_bug.cgi?id=13591
--- Comment #2 from Vladimir <vladimiroski at gmail.com> 2008-06-01 10:51:24 ---
I think this is the code to show the window:
http://emuleplus.cvs.sourceforge.net/emuleplus/src/TaskbarNotifier.cpp?view=markup&sortby=date
Specially the function:
'void CTaskbarNotifier::Show(LPCTSTR szCaption,int nMsgType,DWORD
dwTimeToShow,DWORD dwTimeToStay,DWORD dwTimeToHide)'
HWND hWndTaskbar = ::FindWindow(_T("Shell_TrayWnd"), 0);
278
279 ::GetWindowRect(hWndTaskbar, &rcTaskbar);
280
281 // Daniel Lohmann: Calculate taskbar position from its window rect.
However, on XP
282 // it may be that the taskbar is slightly larger or smaller than the
screen size.
283 // Therefore we allow some tolerance here.
284
285 if (NearlyEqual(rcTaskbar.left, 0, TASKBAR_X_TOLERANCE) &&
NearlyEqual(rcTaskbar.right, nScreenWidth, TASKBAR_X_TOLERANCE ))
286 {
287 // Taskbar is on top or on bottom
288 m_nTaskbarPlacement = NearlyEqual(rcTaskbar.top, 0,
TASKBAR_Y_TOLERANCE ) ? ABE_TOP : ABE_BOTTOM;
289 nBitmapSize = m_nBitmapHeight;
290 }
291 else
292 {
293 // Taskbar is on left or on right
294 m_nTaskbarPlacement = NearlyEqual(rcTaskbar.left, 0,
TASKBAR_X_TOLERANCE ) ? ABE_LEFT : ABE_RIGHT;
295 nBitmapSize = m_nBitmapWidth;
296 }
--
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
Do not reply to this email, post in Bugzilla using the
above URL to reply.
------- You are receiving this mail because: -------
You are watching all bug changes.
More information about the wine-bugs
mailing list