| |
|
|
 Nico Madysa | Hallöle together!
I stand somehow on the Hose -- how can I one HTML-Win so Lock, that one it of course integrally normal using can, the Rechtsklick but prohibited is? my attempt over Subclassing is failed: CompileMarkSeparation |
|
|
|
|
 | |
|
| |
|
|
|
 Nico Madysa | after a couple obligatorischen Drops-Fehlern functions the thing wonderful.  CompileMarkSeparation $H Messages.ph
var hUser& = ImportDLL("USER32","u_")
{subClassProc
Subclassproc
if SubclassMessage(subhandle&,~WM_CONTEXTMENU)
Set("WinProc",0)
else
Set("WinProc",1)
endif
endproc
proc GetServerWindow
parameters cWnd&,sAddr&
declare b#
Dim b#,4 : b# = sAddr&
if Long(b#,0)
Dispose b#
return 0
endif
Select ClassOf(cWnd&)
Caseof "Shell Embedding"
u_EnumChildWindows(cWnd&,ProcAddr("GetServerWindow",2),sAddr&)
Caseof "Shell DocObject View"
u_EnumChildWindows(cWnd&,ProcAddr("GetServerWindow",2),sAddr&)
Caseof "Internet Explorer_Server"
Long b#,0 = cWnd&
Dispose b#
return 0
EndSelect
Dispose b#
return 1
endproc
proc SubclassHTMLWin
parameters pHTML&,stat%
var subWin& = 0
u_EnumChildWindows(pHTML&,ProcAddr("GetServerWindow",2),Addr(subWin&))
SubClass subWin&,stat%
return subWin&
endproc
cls
var h& = Create("HTMLWin",%hWnd,"about:blank",1,0,0,200,200)
while HTMLWin("GetBusy",h&) : Sleep 1 : wend
var subhandle& = SubclassHTMLWin(h&,1)
whilenot IsKey(27)
waitinput
wend
FreeDLL hUs end
EDIT: code run made |
|
|
| |
|
|
|
 Dieter Zornow | after I time everything complement having, that it run was, functions the Rechtsklick still. |
|
|
| Er ist ein Mann wie ein Baum. Sie nennen ihn Bonsai., Win 7 32 bit und Win 7 64 bit, mit XProfan X2 | 09/30/09 ▲ |
|
|
|
|
 | |
|
| |
|
|
|
 Nico Madysa | alas, dusslige Kleinigkeiten!  |
|
|
| |
|
|