Autor Beitrag
neojones
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 1206
Erhaltene Danke: 1



BeitragVerfasst: Mo 16.02.04 15:29 
Hi Leute,

TWebBrowser zeigt jedesmal beim Rechtsklick das eigene Menü des Internet-Explorers. Kann man das irgendwie abschalten? Hab hier im Forum schon rumgeschaut, aber anscheinend gehts nur mit einer zusätzlichen Kompo?

Viele Grüße,

Matthias

_________________
Ha! Es compiliert! Wir können ausliefern!
neojones Threadstarter
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 1206
Erhaltene Danke: 1



BeitragVerfasst: Mo 16.02.04 17:25 
Habs hinbekommen.

Es gibt ne Kompo EmbeddedWebBrowser, damit gehts.

_________________
Ha! Es compiliert! Wir können ausliefern!
Chatfix
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 1583
Erhaltene Danke: 10

Win 10, Win 8, Win 7, Win Vista, Win XP
VB.net (VS 2015), MsSQL (T-SQL), HTML, CSS, PHP, MySQL
BeitragVerfasst: Mo 16.02.04 17:40 
ausblenden volle Höhe 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:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
var 
  HookID: THandle; 

function MouseProc(nCode: Integer; wParam, lParam: Longint): Longint; stdcall; 
var 
  szClassName: array[0..255] of Char; 
const 
  ie_name = 'Internet Explorer_Server'; 
begin 
  case nCode < 0 of 
    True: 
      Result := CallNextHookEx(HookID, nCode, wParam, lParam) 
      else 
        case wParam of 
          WM_RBUTTONDOWN, 
          WM_RBUTTONUP: 
            begin 
              GetClassName(PMOUSEHOOKSTRUCT(lParam)^.HWND, szClassName, SizeOf(szClassName)); 
              if lstrcmp(@szClassName[0], @ie_name[1]) = 0 then 
                Result := HC_SKIP 
              else 
                Result := CallNextHookEx(HookID, nCode, wParam, lParam); 
            end 
            else 
              Result := CallNextHookEx(HookID, nCode, wParam, lParam); 
        end; 
  end; 
end; 

procedure TForm1.FormCreate(Sender: TObject); 
begin 
  HookID := SetWindowsHookEx(WH_MOUSE, MouseProc, 0, GetCurrentThreadId()); 
end; 

procedure TForm1.FormDestroy(Sender: TObject); 
begin 
  if HookID <> 0 then 
    UnHookWindowsHookEx(HookID); 
end;


Quelle: www.swissdelphicente.../showcode.php?id=571

_________________
Gehirn: ein Organ, mit dem wir denken, daß wir denken. - Ambrose Bierce
matze
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 4613
Erhaltene Danke: 24

XP home, prof
Delphi 2009 Prof,
BeitragVerfasst: Mo 16.02.04 17:48 
oder such mal auf www.swissdelphicenter.ch da gibts nen code für die Twebbrowser !

_________________
In the beginning was the word.
And the word was content-type: text/plain.
neojones Threadstarter
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 1206
Erhaltene Danke: 1



BeitragVerfasst: Mo 16.02.04 17:51 
Und wieder ein guter Grund diesem Forum für immer treu zu bleiben ;-)

Danke!

Viele Grüße,

Matthias

_________________
Ha! Es compiliert! Wir können ausliefern!
Chatfix
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 1583
Erhaltene Danke: 10

Win 10, Win 8, Win 7, Win Vista, Win XP
VB.net (VS 2015), MsSQL (T-SQL), HTML, CSS, PHP, MySQL
BeitragVerfasst: Di 17.02.04 10:31 
matze hat folgendes geschrieben:
oder such mal auf www.swissdelphicenter.ch da gibts nen code für die Twebbrowser !

Was hab ich denn geschrieben? *gg*
Mein Code is ja aus dem SwissDelphiCenter und natürlich für den TWebBrowser....

_________________
Gehirn: ein Organ, mit dem wir denken, daß wir denken. - Ambrose Bierce
matze
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 4613
Erhaltene Danke: 24

XP home, prof
Delphi 2009 Prof,
BeitragVerfasst: Di 17.02.04 13:10 
dein post war noch nicht da hal ich meins gepostet hab !!! und ich hab nach dem posten nichtehr ins topic zurückgeschaut !

_________________
In the beginning was the word.
And the word was content-type: text/plain.
Chatfix
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 1583
Erhaltene Danke: 10

Win 10, Win 8, Win 7, Win Vista, Win XP
VB.net (VS 2015), MsSQL (T-SQL), HTML, CSS, PHP, MySQL
BeitragVerfasst: Di 17.02.04 14:17 
8 Minuten für die antwort, welche schlimmen seiten hast du da nebenbei angeguggt? :lol:

_________________
Gehirn: ein Organ, mit dem wir denken, daß wir denken. - Ambrose Bierce
matze
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 4613
Erhaltene Danke: 24

XP home, prof
Delphi 2009 Prof,
BeitragVerfasst: Di 17.02.04 14:55 
ich gehe da immer so vor: ich lasse mir die seiten mit den beiträgen seit meinem letzten besuch anzeigen, und gehe dann die beiträge ich ich mir anscheun oder auf die ich antowrten will durch und mache die in einem neuen browserfenster auf. deswegn stand dieser beitrag anscheinend schon etwas länger rum und ich habe deine antwort nicht gesehen !

_________________
In the beginning was the word.
And the word was content-type: text/plain.
Amiga-Fan
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 534



BeitragVerfasst: Mo 06.12.04 22:20 
der code ist ja gräßlich. :D blöde WinAPI... unter Kylix wird das erst recht nicht gehen...

gibt es das auch für TMozillaBrowser?