Autor Beitrag
Prinz_Inside
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 29



BeitragVerfasst: So 16.01.05 12:52 
Hallo!

Ich habe eine Appbar erstellt, welche auch Platz reserviert, aber leider landet meine Form untendrunter :roll:
Hier mal mein Code:
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
procedure TForm2.FormShow(Sender: TObject);
var
Result : Integer;
begin
DAta.cbSize := SizeOf(TAppBarData);;
Data.hWnd := Form2.Handle;
Data.uEdge := ABE_TOP;
Data.rc.Left := 0;
Data.rc.Top := 0;
Data.rc.Right := 0;
Data.rc.Bottom := 80;

result := SHAppBarMessage(ABM_NEW, Data);

if Result = 0 then
begin
  ShowMessage('AppBar konnte nicht registriert werden');
  exit;
end;
  self.Width := screen.Width;
  SHAppBarMessage(ABM_QUERYPOS, Data);
  SHAppBarMessage(ABM_SETPOS, Data);
  Application.ProcessMessages;
  MoveWindow(Data.hWnd, Data.rc.Left, Data.Rc.Top,GetSystemMetrics(SM_CXSCREEN), Data.rc.Bottom, true);
end;


Woran liegts?

Danke schon mal!

Tim
Prinz_Inside Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 29



BeitragVerfasst: So 16.01.05 23:07 
weis den keiner ne antwort darauf? :?