Mega Code Archive

 
Categories / Delphi / Graphic
 

Application stays iconized

Title: Application stays iconized Question: Answer: To achieve this you have to react on the message WMQUERYOPEN. Therefore we need a event-handler in the private-section - e.g. in the TForm declaration. procedure WMQueryOpen(var Msg: TWMQueryOpen); message WM_QUERYOPEN; the implementation looks like this: procedure WMQueryOpen(var Msg: TWMQueryOpen); begin Msg.Result := 0; end;