Subclassing window

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Andrius B.

    #1

    Subclassing window

    Hi all.

    Could smb provide an Internet site or smth explaining how to use function
    SetWindowSubcla ss in vb.net? All examples found by me are in C++ :(

    Thanks.


  • Mattias Sjögren

    #2
    Re: Subclassing window

    >Could smb provide an Internet site or smth explaining how to use function
    >SetWindowSubcl ass in vb.net?
    Personally I'd use the NativeWindow class instead, it handles the
    subclassing work for you.


    Mattias

    --
    Mattias Sjögren [C# MVP] mattias @ mvps.org
    http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
    Please reply only to the newsgroup.

    Comment

    • Andrius B.

      #3
      Re: Subclassing window

      Thanks, I'll check this out.

      "Mattias Sjögren" <mattias.dont.w ant.spam@mvps.o rgwrote in message
      news:eaRCUv$aHH A.3284@TK2MSFTN GP05.phx.gbl...
      Could smb provide an Internet site or smth explaining how to use function
      >>SetWindowSubc lass in vb.net?
      >
      Personally I'd use the NativeWindow class instead, it handles the
      subclassing work for you.
      >
      >
      Mattias
      >
      --
      Mattias Sjögren [C# MVP] mattias @ mvps.org
      http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
      Please reply only to the newsgroup.

      Comment

      • Michel Posseth  [MCP]

        #4
        Re: Subclassing window

        it is probably even enough to implement Imesagefilter interface in the form

        for an example see

        http://www.freevbcode.com/ShowCode.A...omizer&ID=5635

        In this situation it was used to intercept messages from the webbrowser
        control , and from the base form to change the default behavior of the form


        HTH

        regards

        Michel Posseth

        "Mattias Sjögren" <mattias.dont.w ant.spam@mvps.o rgschreef in bericht
        news:eaRCUv$aHH A.3284@TK2MSFTN GP05.phx.gbl...
        Could smb provide an Internet site or smth explaining how to use function
        >>SetWindowSubc lass in vb.net?
        >
        Personally I'd use the NativeWindow class instead, it handles the
        subclassing work for you.
        >
        >
        Mattias
        >
        --
        Mattias Sjögren [C# MVP] mattias @ mvps.org
        http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
        Please reply only to the newsgroup.

        Comment

        Working...