public PreFilterMessage ( System.Windows.Forms &msg ) : bool | ||
msg | System.Windows.Forms | The message to be dispatched. You cannot modify this message. |
return | bool |
public bool PreFilterMessage( ref SWF.Message msg )
{
const int WM_KEYDOWN = 0x100;
SWF.Keys keyCode = (SWF.Keys)(int)msg.WParam & SWF.Keys.KeyCode;
if ( ( msg.Msg == WM_KEYDOWN && keyCode == SWF.Keys.Return )
|| ( msg.Msg == WM_KEYDOWN && keyCode == SWF.Keys.Escape ) )
{
this.Close();
return true;
}
return false;
}