Autor Beitrag
Sy-
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 177



BeitragVerfasst: Di 11.12.07 02:25 
Hi all,

mein Problem ist folgendes:
Ich zeige Dateien mit dem TWebBrowser an und möchte IMMER Miniatur-Ansicht haben
Hat da jemand eine Ahnung wie man die Ansicht steuern kann?

Ich finde praktisch nichts zu dem Thema.


Grüße

_________________
Problems connecting People
Sy- Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 177



BeitragVerfasst: So 03.02.08 15:38 
Also im Code von Browser finde ich Interfaces für die Ansteuerung der Ansicht.
Leider blick ich da nicht durch wie ich den Spaß nutzen kann...

Keiner von euch eine Ahnung?

_________________
Problems connecting People
toms
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 1099
Erhaltene Danke: 2



BeitragVerfasst: So 03.02.08 20:07 
So kannst du immer die Miniatur-Ansicht anzeigen:

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
procedure TForm1.Webbrowser1DocumentComplete(ASender: TObject;
  const pDisp: IDispatch; var URL: OleVariant);
const
  LVS_THUMBNAIL  = $702D;
var
  wnd: HWND;
begin
  wnd := FindWindowEx(Self.Handle, 0'Shell Embedding'nil);
  if wnd <> 0 then
  begin
    wnd := FindWindowEx(wnd, 0'SHELLDLL_DefView'nil);
    if wnd <> 0 then
      SendMessage(wnd, WM_COMMAND, LVS_THUMBNAIL, 0 );
  end;
end;