What are the parameters of the WM_SYSCOMMAND message handling procedure?



1 answer 1

procedure MessageProc(var msg: TWMSysCommand); message WM_SYSCOMMAND; 
  • one
    The definition of the WinAPi function of the same name is: Function MessageProc (nCode: integer; wParam, LPARAM: Longint): Longint; - AseN
  • Speech in question about [Message methods] [1]. [Declaring a New Message-handling Method] [2] - in more detail. [1]: docwiki.embarcadero.com/RADStudio/en/Methods#Message_Methods [2]: docwiki.embarcadero.com/RADStudio/en/… - Yura Ivanov
  • Actually, this is the wrong answer, despite the fact that the TWMSysCommand structure is proposed out of the box. - karmadro4
  • This can not be the case. "Invalid" means it does not work. In fact, yes TWMSysCommand use more correctly. - Yura Ivanov
  • one
    Edited :) Actually, msdn describes a command that is not described in TWMSysCommand - SC_MONITORPOWER ... - Yura Ivanov