How is message handling handled in Delphi?

Questions by nehalshah   answers by nehalshah

Showing Answers 1 - 0 of 0 Answers

EditCDC

  • Jul 16th, 2009
 

Define custom message
const
  WM_MY_MESSAGE = WM_USER + 0;

Define handler for message
  type
  TMyForm = class(TForm)
  private
    procedure OnMyMessage(var Msg: TMessage); message WM_MY_MESSAGE;

Send or Post message
  PostMessage(self.Handle,WM_MY_MESSAGE,0,0)

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions