본문 바로가기
Delphi/프로시저-함수

태스크바 (taskbar) 에서 숨기기

by MonoSoft 2023. 8. 1.
728x90
반응형

태스크바 (taskbar) 에서 숨기기

728x90

 

 

To do this you will need to: 1.Select the View -> Project Source, from Delphi's main menu.

2.Add the Windows unit to the uses clause.

3.Add Application.ShowMainForm := False; to the line after

"Application.Initialize;".

4.Add: ShowWindow(Application.Handle, SW_HIDE); to the line

before "Application.Run;"

Your main project source file should now look something like

this:

 

program Project1;

 

uses

  Windows,

  Forms,

  Unit1 in 'Unit1.pas' {Form1},

  Unit2 in 'Unit2.pas' {Form2};

 

{$R *.RES}

 

begin

  Application.Initialize;

  Application.ShowMainForm := False;

  Application.CreateForm(TForm1, Form1);

  Application.CreateForm(TForm2, Form2);

  ShowWindow(Application.Handle, SW_HIDE);

  Application.Run;

end.

 

5.In the "initialization" section (at the very bottom) of each unit that uses a form, add:

 

begin

  ShowWindow(Application.Handle, SW_HIDE);

end.

728x90
반응형

'Delphi > 프로시저-함수' 카테고리의 다른 글

델파이 숫자 한글변환  (0) 2023.10.27
기간사이 특정요일 개수알아내기  (0) 2023.09.11
시스템 날짜바꾸기  (0) 2023.07.27
Hook(훅) SetWindowsHookEx  (0) 2023.07.07
메모(TMemo) 팁  (0) 2023.06.14

댓글