Einzelnen Beitrag anzeigen

Benutzerbild von Neutral General
Neutral General

Registriert seit: 16. Jan 2004
Ort: Bendorf
5.219 Beiträge
 
Delphi 10.2 Tokyo Professional
 
#1

Weißer Rand beim entfernen von WS_SIZEBOX

  Alt 10. Okt 2007, 13:22
Hi,

Ich ändere mit folgendem Code den Style eines Fensters.

Delphi-Quellcode:
procedure TNVCLForm.SetSizeable(const Value: Boolean);
var old: Cardinal;
begin
  old := GetWindowLong(FHandle,GWL_STYLE);
  if Value then
    SetWindowLong(FHandle,GWL_STYLE,old or WS_SIZEBOX)
  else
    SetWindowLong(FHandle,GWL_STYLE,old and not WS_SIZEBOX);
  FSizeable := Value;
end;
Wenn ich jetzt von mit-Sizebox auf ohne-Sizebox wechsele bekomme ich einen unschönen weißen Rand (Anhang). Was mach ich dagegen? (Hab den weißen Rand rot gefärbt damit man ihn besser erkennt)

Gruß
Neutral General
Miniaturansicht angehängter Grafiken
sizebox_113.jpg  
Michael
"Programmers talk about software development on weekends, vacations, and over meals not because they lack imagination,
but because their imagination reveals worlds that others cannot see."
  Mit Zitat antworten Zitat