menu: nasty bug in menu tracking
Andrew de Quincey
adq_dvb at lidskialf.net
Thu Dec 4 16:44:49 CST 2003
In IDA, the menus don't work correctly... as you move down a menu, the wrong
item is highlighted if you move to a submenu.. after that, the wrong menu is
opened and other bad things occur.
The problem is that MSG.lParam is NOT necessarily in screen coordinates (even
though the comment I have removed says they are). As I can't trust the MSG.pt
either, this means using GetCursorPos() to determine the mouse position in
screen coordinates.
BTW: MSDN says this about the MSG.lParam value for WM_MOUSEMOVED events:
lParam
The low-order word specifies the x-coordinate of the cursor. The coordinate is
relative to the upper-left corner of the client area.
The high-order word specifies the y-coordinate of the cursor. The coordinate
is relative to the upper-left corner of the client area.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: wine-menuposition.patch
Type: text/x-diff
Size: 1152 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20031204/7ef6081a/wine-menuposition.bin
More information about the wine-patches
mailing list