<br>//以下代码仅供参考<br>{<br>This component for hide/show your application in control+alt+delete<br>Control+alt+delete tuslarina bastiginizda uygulamanizin gozukmesini<br>istemiyorsaniz bu component size gore...<br>izzet uslu<br>istanbul-TURKEY<br>http://members.xoom.com/izus<br>izus6@hotmail.com<br>}<br>unit HSApp;<br><br>interface<br><br>uses<br> Windows, Messages, Classes, Controls, Forms, dsgnintf;<br><br>type<br><br> TAboutProperty = class(TPropertyEditor)<br> private<br> procedure Edit; override;<br> function GetAttributes: TPropertyAttributes; override;<br> function GetValue: string; override;<br> end;<br><br> THideShowApp = class(TComponent)<br> private<br> { Private declarations }<br> FAbout:TAboutProperty;<br> protected<br> { Protected declarations }<br> public<br> procedure Hide;<br> procedure Show;<br> published<br> { Published declarations }<br> property About : TAboutProperty read FAbout write FAbout;<br> end;<br><br>procedure Register;<br><br>function RegisterServiceProcess(<br>dwProcessID, dwType: Integer): Integer; stdcall; external 'KERNEL32.DLL';<br><br>implementation<br><br>{$R HSAPP.RES}<br><br>procedure THideShowApp.Hide;<br>begin<br> RegisterServiceProcess(GetCurrentProcessID, 1);<br>end;<br><br>procedure THideShowApp.Show;<br>begin<br> RegisterServiceProcess(GetCurrentProcessID, 0);<br>end;<br><br>{ TAboutProperty }<br><br>procedure TAboutProperty.Edit;<br>begin<br> Application.MessageBox('By izzet uslu - 2000'#13#13'E-Mail : izus6@hotmail.com'#13'WEB : http://members.xoom.com/izus','HideShow component version 1.0', MB_OK+ MB_ICONINFORMATION);<br>end;<br><br>function TAboutProperty.GetAttributes: TPropertyAttributes;<br>begin<br> GetAttributes:=[paDialog, paReadOnly];<br>end;<br><br>function TAboutProperty.GetValue: string;<br>begin<br> GetValue:='(About)';<br>end;<br><br><br>procedure Register;<br>begin<br> RegisterComponents('izus', [THideShowApp]);<br> RegisterPropertyEditor(TypeInfo(TAboutProperty), THideShowApp, 'ABOUT', TAboutProperty);<br>end;<br><br>end.