Registriert seit: 9. Nov 2005
Ort: Bamberg
55 Beiträge
Delphi 2005 Personal
|
Re: Anzeigeänderungen in der Registry ohne Neustart übernehm
5. Apr 2006, 11:04
Lösung gefunden:
Code:
var
Sic_NCMertics: TNonClientMetrics;
...
procedure TForm1.SetScrollHeightWidth(Value: Integer);
var
NCMertics : TNonClientMetrics;
begin
NCMertics.cbSize := SizeOf(NCMertics);
SystemParametersInfo(SPI_GETNONCLIENTMETRICS, NCMertics.cbSize, @NCMertics,0);
Sic_NCMertics := NCMertics;
NCMertics.iScrollWidth := Value;
NCMertics.iScrollHeight := Value;
SystemParametersInfo(SPI_SETNONCLIENTMETRICS, NCMertics.cbSize, @NCMertics,0);
end;
procedure TForm1.ReSetScrollHeightWidth;
begin
SystemParametersInfo(SPI_SETNONCLIENTMETRICS, Sic_NCMertics.cbSize, @Sic_NCMertics,0);
end;
|
|
Zitat
|