[Lazarus] using WM_USER const and TMessage to press escape to minimize form.

Roberto Padovani padovani.r at gmail.com
Mon Dec 27 14:10:30 CET 2010


2010/12/27 Peter Williams <pewilliams2010 at live.com>:
> Hi All,
>
> I am trying to port some Delphi 5 or 7 (cannot recall which) to Lazarus.
>
> What do I change WM_USER to? I am getting Identifier not found.
>
> Here is the code:
>
> main.pas
>
> const
>   WM_USER_APPLICATION_MINIMIZE = WM_USER+1;
>
> // identifier not found WM_USER

Add the following use clause:

uses Windows;

R#




More information about the Lazarus mailing list