Print Page | Close Window

O804 Fow windows message procedures

Printed From: TMS Software
Category: Developer Tools
Forum Name: DEV FixInsight
Forum Discription:
URL: http://www.tmssoftware.com/site/forum/forum_posts.asp?TID=7727
Printed Date: 21 Feb 2020 at 4:10pm


Topic: O804 Fow windows message procedures
Posted By: Jura Lloyd
Subject: O804 Fow windows message procedures
Date Posted: 19 Apr 2017 at 11:09pm
Hi

I think following code should not report that 'Msg' is declared but never used, because you cannot remove Msg in this case.

TMyForm = class(TForm)
    procedure WmDisplayChange(var Msg: TMessage); message WM_DISPLAYCHANGE;
end;

...

procedure TMyForm.WmDisplayChange(var Msg: TMessage);
begin
  // some code not referencing Msg
end;



Print Page | Close Window