procedure TForm1.FormCreate(Sender: TObject);
begin
//フォーム作成時に入れ替え
SetWindowLong(Edit1.Handle, GWL_STYLE,
GetWindowLong(Edit1.Handle, GWL_STYLE)
or ES_RIGHT
or ES_NUMBER);
//変更を反映
SetWindowPos(Edit1.Handle, 0, 0, 0, 0, 0,
SWP_NOMOVE or SWP_NOSIZE or
SWP_NOZORDER or SWP_FRAMECHANGED);
end; |