C#,Delphi,Oracle,MSSQL 개발자블로그

델파이 폼 Maximize, Minimize 버튼 숨기기 본문

Programming/Delphi

델파이 폼 Maximize, Minimize 버튼 숨기기

19760323 2019. 6. 8. 15:02

procedure TForm1.FormCreate(Sender: TObject); var l: DWORD;

begin

   // hide minimize and maximise buttons

   l := GetWindowLong(Self.Handle, GWL_STYLE);

   l := l and not(WS_MINIMIZEBOX);

   l := l and not(WS_MAXIMIZEBOX);

   l := SetWindowLong(Self.Handle, GWL_STYLE, l);

end;

 

출처 : https://stackoverflow.com/questions/2316286/how-to-disable-maximize-button-in-delphi-program

Comments