Okay, will write a test case later today or tomorrow.<br>
<br>When trying to fix the issue I had, I noticed that in the function 
where it currently handles the logic for the menu key, it only received 
messages WM_MOUSEACTIVATE on pressing and WM_CAPTURECHANGED on release 
(in the tested application), 
but no mouse down or up messages, which caused the mouse down not to set
 the iMenuSysKey to 0 if the mouse button was pressed after holding alt 
(and additionally it also needs to not select the menu either when hitting
 alt while the mouse button is already down). (Also, when trying this 
manually on linux, gnome desktop wm mouse-button-modifier should be changed from 
Alt to something else, because it intercepts the alt-mouse combos before
 wine sees them it seems.)<div class="yj6qo ajU"><div id=":4z" class="ajR" tabindex="0"><img class="ajT" src="https://mail.google.com/mail/u/2/images/cleardot.gif"></div></div><br>So, since the function is not receiving all the messages here, which
 I assume are not all forwarded to the default handler by 3ds Max, would
 it be better to hook into the messages or mouse status at an earlier 
point in the code (to handle the first case where the mouse is pressed 
after alt)? And is there a saner way that can be used here to check if 
the mouse is down (when alt is pressed after mouse down)?<br>
<br><br><div class="gmail_quote">On Fri, Aug 10, 2012 at 8:14 AM, Dmitry Timoshkov <span dir="ltr"><<a href="mailto:dmitry@baikal.ru" target="_blank">dmitry@baikal.ru</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Jan Boon <<a href="mailto:jan.boon@kaetemi.be">jan.boon@kaetemi.be</a>> wrote:<br>
<br>
> Fix for bug #31434.<br>
<br>
1. this kind of change requires a test case, some of the changes look wrong<br>
2. formatting is broken due to not standard tab size<br>
3. patch introduces compile-time warnings, that's not accepatable<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
Dmitry.<br>
</font></span></blockquote></div><br>