Einzelnen Beitrag anzeigen

Angel4585

Registriert seit: 4. Okt 2005
Ort: i.d.N.v. Freiburg im Breisgau
2.199 Beiträge
 
Delphi 2010 Professional
 
#10

Re: Ist es möglich die Scrollbar in MDI-Form abzuschalten ?

  Alt 17. Feb 2006, 10:08
warum TNoScroll? mach das doch direkt in TForm1

Delphi-Quellcode:

  type
  TForm1 = class(TForm)
  private
    procedure WMNCCalcSize(var Msg: TMessage);
      message WM_NCCALCSIZE;
    { Private-Deklarationen } 
  public
    { Public-Deklarationen } 
  end;



var
  Form1: TForm1;

implementation

{$R *.dfm} 

procedure TForm1.WMNCCalcSize(var Msg: TMessage);
const
  Scrollstyles = WS_VSCROLL or WS_HSCROLL;
var
  Style: Integer;
begin
  Style := GetWindowLong(Self.ClientHandle, GWL_STYLE);
  if (Style and Scrollstyles) <> 0 then
    SetWindowLong(Self.ClientHandle, GWL_STYLE, Style and not Scrollstyles);
  inherited;
end;
so sollte das gehen..(nicht getestet)
Martin Weber
Ich bin ein Rüsselmops
  Mit Zitat antworten Zitat