DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 10 of 10

Thread: Message Constants for Subclassing

  1. #1
    Chris Lucas Guest

    Message Constants for Subclassing


    Simple question: Where does one find a decently comprehensive list of
    message constants for various MS contols. I've subclassed controls a few
    times now, and I'm getting pretty tired of trial-and-error discovery of the
    specific message I'm looking for. The API viewer is pathetic in this regard
    for whatever reason. In particular I'm looking for the message that is sent
    when a column is resized in a listview. I'm sure its 24 or 512 or whatever,
    but I'd really like to find a collection of these values. Am I referring
    to these as the wrong thing and that's why I can't find jack on MS's site?
    Going nuts here, can anybody help me out?

    Thanks,
    Chris

  2. #2
    Karl E. Peterson Guest

    Re: Message Constants for Subclassing

    Hi Chris --

    If you install the header (*.h) files from the SDK, they're all there. I have my
    text editor (textpad) pointed to search the folder where those are, in cases where I
    don't find what I need in WIN32API.TXT.

    Later... Karl
    --
    [Microsoft Basic: 1976-2001, RIP]


    "Chris Lucas" <cdl1051@earthlink.net> wrote in message
    news:3bd5c28e$1@news.devx.com...
    >
    > Simple question: Where does one find a decently comprehensive list of
    > message constants for various MS contols. I've subclassed controls a few
    > times now, and I'm getting pretty tired of trial-and-error discovery of the
    > specific message I'm looking for. The API viewer is pathetic in this regard
    > for whatever reason. In particular I'm looking for the message that is sent
    > when a column is resized in a listview. I'm sure its 24 or 512 or whatever,
    > but I'd really like to find a collection of these values. Am I referring
    > to these as the wrong thing and that's why I can't find jack on MS's site?
    > Going nuts here, can anybody help me out?
    >
    > Thanks,
    > Chris



  3. #3
    Chris Lucas Guest

    Re: Message Constants for Subclassing


    Karl,

    Which SDK? Perhaps you can tell me how to install said files or point
    me to someplace that can?

    Thanks
    Chris


    "Karl E. Peterson" <karl@mvps.org> wrote:
    >Hi Chris --
    >
    >If you install the header (*.h) files from the SDK, they're all there.

    I have my
    >text editor (textpad) pointed to search the folder where those are, in cases

    where I
    >don't find what I need in WIN32API.TXT.
    >
    >Later... Karl
    >--
    >[Microsoft Basic: 1976-2001, RIP]
    >
    >
    >"Chris Lucas" <cdl1051@earthlink.net> wrote in message
    >news:3bd5c28e$1@news.devx.com...
    >>
    >> Simple question: Where does one find a decently comprehensive list

    of
    >> message constants for various MS contols. I've subclassed controls a

    few
    >> times now, and I'm getting pretty tired of trial-and-error discovery of

    the
    >> specific message I'm looking for. The API viewer is pathetic in this

    regard
    >> for whatever reason. In particular I'm looking for the message that is

    sent
    >> when a column is resized in a listview. I'm sure its 24 or 512 or whatever,
    >> but I'd really like to find a collection of these values. Am I referring
    >> to these as the wrong thing and that's why I can't find jack on MS's site?
    >> Going nuts here, can anybody help me out?
    >>
    >> Thanks,
    >> Chris

    >



  4. #4
    Michael Culley Guest

    Re: Message Constants for Subclassing

    You get all the constants if you install MS C++. You don't have to know C to
    use it, just start up C and search in its directory. All the constants start
    with the same prefix, eg it think the treeview in TVW_. There are also
    reference in VB for this on the net but I am not sure where. Someone
    converted the entire windows common controls APIs from C to VB.

    --
    Michael Culley
    www.vbdotcom.com
    "Chris Lucas" <cdl1051@earthlink.net> wrote in message
    news:3bd5d447$1@news.devx.com...
    >
    > Karl,
    >
    > Which SDK? Perhaps you can tell me how to install said files or point
    > me to someplace that can?
    >
    > Thanks
    > Chris
    >
    >
    > "Karl E. Peterson" <karl@mvps.org> wrote:
    > >Hi Chris --
    > >
    > >If you install the header (*.h) files from the SDK, they're all there.

    > I have my
    > >text editor (textpad) pointed to search the folder where those are, in

    cases
    > where I
    > >don't find what I need in WIN32API.TXT.
    > >
    > >Later... Karl
    > >--
    > >[Microsoft Basic: 1976-2001, RIP]
    > >
    > >
    > >"Chris Lucas" <cdl1051@earthlink.net> wrote in message
    > >news:3bd5c28e$1@news.devx.com...
    > >>
    > >> Simple question: Where does one find a decently comprehensive list

    > of
    > >> message constants for various MS contols. I've subclassed controls a

    > few
    > >> times now, and I'm getting pretty tired of trial-and-error discovery of

    > the
    > >> specific message I'm looking for. The API viewer is pathetic in this

    > regard
    > >> for whatever reason. In particular I'm looking for the message that is

    > sent
    > >> when a column is resized in a listview. I'm sure its 24 or 512 or

    whatever,
    > >> but I'd really like to find a collection of these values. Am I

    referring
    > >> to these as the wrong thing and that's why I can't find jack on MS's

    site?
    > >> Going nuts here, can anybody help me out?
    > >>
    > >> Thanks,
    > >> Chris

    > >

    >




  5. #5
    Karl E. Peterson Guest

    Re: Message Constants for Subclassing

    Hi Chris --

    > Which SDK? Perhaps you can tell me how to install said files or point
    > me to someplace that can?


    Um, the Win32 SDK. <g> Used to be something you could download, but I've always just
    installed it from MSDN. Looks like you can still snag it at:

    http://www.microsoft.com/msdownload/...sdk/sdkupdate/

    Later... Karl
    --
    [Microsoft Basic: 1976-2001, RIP]


  6. #6
    Cali LaFollett Guest

    Re: Message Constants for Subclassing

    > Um, the Win32 SDK. <g> Used to be something you could download, but I've
    always just
    > installed it from MSDN. Looks like you can still snag it at:


    Definitely be prepared for a long wait unless you have a T1 or Cable
    Internet Access. It's a 900MB download! :-)

    Cal



  7. #7
    Jonathan Wood Guest

    Re: Message Constants for Subclassing

    Either that or purchase MSDN.

    --
    Jonathan Wood
    SoftCircuits Programming
    http://www.softcircuits.com
    "Cali LaFollett" <cali@no-spam-please-visionized.com> wrote in message
    news:3bd6af30$1@news.devx.com...
    > > Um, the Win32 SDK. <g> Used to be something you could download, but

    I've
    > always just
    > > installed it from MSDN. Looks like you can still snag it at:

    >
    > Definitely be prepared for a long wait unless you have a T1 or Cable
    > Internet Access. It's a 900MB download! :-)
    >
    > Cal
    >
    >




  8. #8
    Karl E. Peterson Guest

    Re: Message Constants for Subclassing

    Hi Cal --

    > > Um, the Win32 SDK. <g> Used to be something you could download, but I've

    > always just
    > > installed it from MSDN. Looks like you can still snag it at:

    >
    > Definitely be prepared for a long wait unless you have a T1 or Cable
    > Internet Access. It's a 900MB download! :-)


    Which 'splains, I spose, why I always install from MSDN. <g>
    --
    [Microsoft Basic: 1976-2001, RIP]


  9. #9
    Cali LaFollett Guest

    Re: Message Constants for Subclassing

    > Which 'splains, I spose, why I always install from MSDN. <g>

    Hey Karl,

    Definitely the route I take myself. <g>

    Havin high speed access is like havin a really nice, fast car, one just has
    to get out there and clean out the pipes every once in a while.

    I actually did a 1.9 GB download of Mandrake Linux 8.1 here a couple weeks
    ago and was pleasantly surprised to see move along at 400KB/sec.

    Gotta love cable internet access!

    Cal



  10. #10
    Karl E. Peterson Guest

    Re: Message Constants for Subclassing

    Yep! But even with a T1, I'll still go to the CD if I got it. :-)
    --
    [Microsoft Basic: 1976-2001, RIP]


    "Cali LaFollett" <cali@no-spam-please-visionized.com> wrote in message
    news:3bd8521a$2@news.devx.com...
    > > Which 'splains, I spose, why I always install from MSDN. <g>

    >
    > Hey Karl,
    >
    > Definitely the route I take myself. <g>
    >
    > Havin high speed access is like havin a really nice, fast car, one just has
    > to get out there and clean out the pipes every once in a while.
    >
    > I actually did a 1.9 GB download of Mandrake Linux 8.1 here a couple weeks
    > ago and was pleasantly surprised to see move along at 400KB/sec.
    >
    > Gotta love cable internet access!
    >
    > Cal
    >
    >



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