Newsgroups : Borland : borland.public.delphi.nativeapi.win32 : 2005 May : OnMinimize handling problem

www.cryer.info
Managed Newsgroup Archive

OnMinimize handling problem

Subject:OnMinimize handling problem
Posted by:"Greifeld" (x@x.x)
Date:25 May 2005 06:04:33

hi,

i would like to minimize the application to traybar whenever the main form
is minimized so i've used ApplicationEvents.OnMinimize as below:

if ShouldBeMinimized then DoMinimize;

DoMinimize is a procedure that uses Shell_NotifyIcon with NIM_ADD flag to
add an icon to traybar.

everything about the icon is working perfectly so there is no problem with
the notify icon data identifier and the api functions but it seems that
something works wrong in the OnMinimize handler!

thanks in advance,
H. Greifeld

Replies:

www.cryer.info
Managed Newsgroup Archive