I think you will need to trap WM_SYSCOMMAND with the wCmdType value set to
SC_MINIMIZE.  The alternative is to trap WM_SIZE with the fwSizeType value
set to SIZE_MINIMIZED.

Hope this helps.
Dennis.

> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
> Behalf Of Cheng Wei
> Sent: Monday, 29 May 2000 15:34
> To: Multiple recipients of list delphi
> Subject: RE: [DUG]: How do you determine a form is manually minimised?
>
>
> Thanks, but TForm doesn't have an OnMinimise event!
> OnMinimise event in TApplicationEvents won't help me, what I
> need is the
> other way around.
>
> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
> Behalf Of Rohit Gupta
> Sent: Monday, 29 May 2000 15:16
> To: Multiple recipients of list delphi
> Subject: Re: [DUG]: How do you determine a form is manually minimised?
>
>
> There is an onminimise event
>
> -----Original Message-----
> From: Cheng Wei <[EMAIL PROTECTED]>
> To: Multiple recipients of list delphi <[EMAIL PROTECTED]>
> Date: Monday, 29 May 2000 12:00
> Subject: [DUG]: How do you determine a form is manually minimised?
>
>
> Hi all,
>
> If a form is not the main form, when user click the Minimise
> BorderIcon (or
> menu item), it is minimised and placed on top of the task
> bar. I need to
> call Application.Minimize whenever this happens, so that
> there is always
> only one taskbar icon representing the application. (there is
> no problem to
> restore the form, simply drop a TApplicationEvents component
> on the form).
>
> How do I know a form is minimised, trap windows messages? or
> is there  an
> easier way?
>
> Thanks
> Cheng
>
>
>
>
> --------------------------------------------------------------
> -------------
>     New Zealand Delphi Users group - Delphi List -
> [EMAIL PROTECTED]
>                   Website: http://www.delphi.org.nz
>
>
> --------------------------------------------------------------
> -------------
>     New Zealand Delphi Users group - Delphi List -
> [EMAIL PROTECTED]
>                   Website: http://www.delphi.org.nz
>
> --------------------------------------------------------------
> -------------
>     New Zealand Delphi Users group - Delphi List -
> [EMAIL PROTECTED]
>                   Website: http://www.delphi.org.nz
>

---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz

Reply via email to