Windows Messages


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 3 of 3

Thread: Windows Messages

  1. #1
    Philip Guest

    Windows Messages


    Hi,

    Is there any way to see all the windows messages that are being passed to
    a window. This was possible in VB6 by subclassing the window and then calling
    the default window procedure to handle the message.

    In VB.Net I found the WndProc and DefWndProc methods that can be overridden.
    By overriding the WindProc method, I am able to see the messages, but how
    to call the default window procedure to handle the message, I don't know.

    Could someone pl help

    Philip

  2. #2
    Philip Guest

    Re: Windows Messages


    I found it, all i have to do is to call the WndProc of the base class

    MyBase.WndProc

    What happened was I could not see this method as part of the AutoList members.

    Philip




    "Philip" <philip.morley@bmb.com.bh> wrote:
    >
    >Hi,
    >
    >Is there any way to see all the windows messages that are being passed to
    >a window. This was possible in VB6 by subclassing the window and then calling
    >the default window procedure to handle the message.
    >
    >In VB.Net I found the WndProc and DefWndProc methods that can be overridden.
    >By overriding the WindProc method, I am able to see the messages, but how
    >to call the default window procedure to handle the message, I don't know.
    >
    >Could someone pl help
    >
    >Philip



  3. #3
    Patrick Steele [MVP] Guest

    Re: Windows Messages

    In article <3d552434$1@10.1.10.29> (from Philip
    <philip.morley@bmb.com.bh>),
    >
    > I found it, all i have to do is to call the WndProc of the base class
    >
    > MyBase.WndProc
    >
    > What happened was I could not see this method as part of the AutoList members.


    Somewhere in VS.NET settings (not at my VS.NET machine right now), under
    the section for VB.NET there's a checkbox called "Hide advanced
    members" (or something like that). It's defaults to being checked.
    Uncheck it.

    --
    Patrick Steele
    Microsoft .NET MVP
    http://radio.weblogs.com/0110109

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center