본문 바로가기
Web Program/Html Lecture

TButton 정렬 변경하기.

by 현이빈이 2008. 9. 4.
반응형

procedure TForm1.Button3Click(Sender: TObject);
var
  AStyle:Integer;
begin
  AStyle:=GetWindowLong(Button1.Handle,GWL_STYLE);
  AStyle:=AStyle or BS_LEFT;
  SetWindowLong(Button1.Handle,GWL_STYLE,AStyle);

end;

반응형