English
Forum

HTML-Window Lock

 

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
09/29/09  
 



working [...]  ? [...] 
 
09/29/09  
 




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 
 
Nico Madysa
09/30/09  
 




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  
 



 
09/30/09  
 




Nico
Madysa
alas, dusslige Kleinigkeiten!
 
Nico Madysa
09/30/09  
 



Answer


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

2.622 Views

Untitledvor 0 min.
Uwe Lang03/22/23
H.Brill10/11/18
Dean Wood01/25/13
Andre Rohland10/10/12
More...

Themeninformationen

this Topic has 3 subscriber:

Nico Madysa (3x)
iF (2x)
Dieter Zornow (1x)


Admins  |  AGB  |  Applications  |  Authors  |  Chat  |  Privacy Policy  |  Download  |  Entrance  |  Help  |  Merchantportal  |  Imprint  |  Mart  |  Interfaces  |  SDK  |  Services  |  Games  |  Search  |  Support

One proposition all XProfan, The there's!


My XProfan
Private Messages
Own Storage Forum
Topics-Remember-List
Own Posts
Own Topics
Clipboard
Log off
 Deutsch English Français Español Italia
Translations

Privacy Policy


we use Cookies only as Session-Cookies because of the technical necessity and with us there no Cookies of Drittanbietern.

If you here on our Website click or navigate, stimmst You ours registration of Information in our Cookies on XProfan.Net To.

further Information To our Cookies and moreover, How You The control above keep, find You in ours nachfolgenden Datenschutzerklärung.


all rightDatenschutzerklärung
i want none Cookie