Cabster/Business/Shortcut.cs
/// <summary>
///     Procedure associada a esta janela.
/// </summary>
/// <param name="message">Mensagem do sistema operacional.</param>
Procedure associada a esta janela.
Procedure associada a esta janela .
protected override void WndProc(ref Message message)
            {
                base.WndProc(ref message);
                if (message.Msg != (int) WindowsApi.WM.HOTKEY) return;
                var key = (Keys) (((int) message.LParam >> 16) & 0xFFFF);
                var modifier = (WindowsApi.KeyModifiers) ((int) message.LParam & 0xFFFF);
                KeyPressed?.Invoke(modifier, key);
            }
protected override void WndProc ( ref Message message ) { base . WndProc ( ref message ) ; if ( message . Msg != ( int ) WindowsApi . WM . HOTKEY ) return ; var key = ( Keys ) ( ( ( int ) message . LParam >> 16 ) & 0xFFFF ) ; var modifier = ( WindowsApi . KeyModifiers ) ( ( int ) message . LParam & 0xFFFF ) ; KeyPressed ? . Invoke ( modifier , key ) ; }
Procedure associada a esta janela.
Procedure associada a esta janela .
Message
ref
message
Mensagem do sistema operacional.
Mensagem do sistema operacional .