Results 1 to 4 of 4

Thread: SendMessage Constants ??

  1. #1

    Thread Starter
    New Member
    Join Date
    Aug 1999
    Location
    Bucks
    Posts
    12

    Post

    The SendMessage and PostMessage commands would appear to be very useful but how do I get a list of all of the messages that an app will accept and their parameters. How do I make a VB6 app that will respond to these?

    Thanks.

  2. #2
    Guru Aaron Young's Avatar
    Join Date
    Jun 1999
    Location
    Red Wing, MN, USA
    Posts
    2,176

    Post

    Check out this Website it has a Win32 API Help File Download which describes alot of the Messages and their Parameters. you can get the Declarations from the API viewer which ships with VB.

    ------------------
    Aaron Young
    Analyst Programmer
    aarony@redwingsoftware.com
    adyoung@win.bright.net

  3. #3

    Thread Starter
    New Member
    Join Date
    Aug 1999
    Location
    Bucks
    Posts
    12

    Post

    Thanks, I'll give it a go.

  4. #4
    Serge's Avatar
    Join Date
    Feb 1999
    Location
    Scottsdale, Arizona, USA
    Posts
    2,744

    Post

    Every set of constants based on the prefix. In other words, lets say you want to change the style or behavior of the listbox: Then all constants will start with LB.

    Example: LB_FINDSTRING, LB_GETCOUNT etc.
    For the style you would add S after LB, so it would be: LBS_SORT, LBS_USETABSTOPS etc.

    Here are some control constants prefixes:


    LB - ListBox
    CB - ComboBox
    EM - TextBox, RichTextBox
    BM - Button, CheckBox, OptionButton
    WM - Window Message
    TVM - TreeView
    LVM - ListView


    If you have MSDN Library installed then you have all the help for these constants.

    Regards,

    ------------------

    Serge

    Software Developer
    Serge_Dymkov@vertexinc.com
    Access8484@aol.com



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width