The following bug has been pointed to me by Arie Tal ([EMAIL PROTECTED]).
When running in --managed mode Lotus Notes 4.5 and 5.0 tries to change
window's title but instead it puts the text below the title. When running
in unmanaged mode Lotus Notes changes the title without any problem. 

Problem analysis revealed that DrawTextA is used to draw on the title. 
winedbg (thanks to Eric Pouech's fix) showed that this DrawTextA is called
directly from Notes (and not from inside wine). 

Here is a trace of an attempt to put "Cut to the Clipboard" on the title.
I am not sure if it is from managed or unmanaged (they both seems to have
the same values).

Trace of user32 relay:
Call user32.171: DrawTextA(00000b78,406e5754 "Cut to the 
Clipboard",ffffffff,406e58d8,00000000) ret=00916e3b fs=008f
Ret  user32.171: DrawTextA() retval=0000000e ret=00916e3b fs=008f

Trace of +x11,+text:
trace:text:DrawTextA ""..., -1 , [(31,6),(595,21)]
trace:text:X11DRV_GetTextExtentPoint L"C"... 1
trace:x11:TSXTextExtents16 Call XTextExtents16
trace:x11:TSXTextExtents16 Ret XTextExtents16
[ the above 3 lines repeat for all string characters]
.....
trace:text:X11DRV_GetTextExtentPoint L"Cut to the Clipboard"... 20
trace:x11:TSXTextExtents16 Call XTextExtents16
trace:x11:TSXTextExtents16 Ret XTextExtents16
trace:x11:TSXChangeGC Call XChangeGC
trace:x11:TSXChangeGC Ret XChangeGC
trace:text:X11DRV_ExtTextOut hdc=0d48 df=0002 31,6 L"Cut to the Clipboard"..., 20  
flags=4 lpDx=(nil)
trace:text:X11DRV_ExtTextOut    rect=(31,6 - 595,21)
trace:text:X11DRV_ExtTextOut    real coord: x=31, y=6, rect=(31,6 - 595,21)
trace:text:X11DRV_GetTextExtentPoint L"Cut to the Clipboard"... 20



How to reproduce in Notes:
run 'wine --managed nlnotes', then enter the 'edit' menu and go up and
down this menu (the title will be changed for every entry you pass).


Thanks

  Michael

Reply via email to