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