T
terry_zhou82
Unregistered / Unconfirmed
GUEST, unregistred user!
想通过标题栏按上面的CANCLOSE实现程序的最小化,但每次弄都会在任务栏上面显示程序的标题,改怎么设置呢?我是用D2009中的TTRAYICON控件的。代码如下:rocedure TForm1.FormCloseQuery(Sender: TObject
var CanClose: Boolean);begincanclose:=false;if not canclose thenbeginapplication.Minimize;application.ShowMainForm :=false;application.MainFormOnTaskBar :=false;end;end;
var CanClose: Boolean);begincanclose:=false;if not canclose thenbeginapplication.Minimize;application.ShowMainForm :=false;application.MainFormOnTaskBar :=false;end;end;