본문 바로가기
Application/Delphi Lecture

AlwaysOnTop 처리하기

by 현이빈이 2008. 8. 13.
반응형
procedure TForm1.FormShow(Sender: TObject);
begin
  SetWindowPos(Form1.Handle,
               HWND_TOPMOST,
               0, 0, 0, 0,
               SWP_NOMOVE or SWP_NOSIZE or SWP_SHOWWINDOW);
end;

// on the calling form . . .
procedure TfrmMain.Button1Click(Sender: TObject);
begin
  Application.CreateForm(TForm1, Form1);
  Form1.ShowModal;
  Form1.Release;
end;
반응형