> 4. Now hold down the Alt key and drag the mouse to select a rectangular
> block of text, upon the time you release the Alt key, the editor lost the
> focus and you can see that the menu have the focus.
Doesn't occur in SciTE (which doesn't use MFC) in either the main
window or in a dialog although pressing and releasing Alt without
mouse down does select a menu. Probably best to make a copy of the
project and substitute a standard edit control and see if it occurs
for it as well. If it doesn't then use Spy++ to see how each control
handles the keyboard messages.
Neil
> If only scintilla can have a special notification that fires when the
> rectangular selection finish, then probably we can "eat" the WM_SYSKEYUP
> message?
If you subclass Scintilla you can track the states of the mouse
button and Alt key.
Neil