Results 1 to 24 of 24

Thread: Windows Messages - Values

  1. #1

  2. #2
    Retired VBF Adm1nistrator plenderj's Avatar
    Join Date
    Jan 2001
    Location
    Dublin, Ireland
    Posts
    10,359
    I'd say MerrionComputing is the man to talk to
    Microsoft MVP : Visual Developer - Visual Basic [2004-2005]

  3. #3
    Frenzied Member KayJay's Avatar
    Join Date
    Jul 2001
    Location
    Chennai
    Posts
    1,849
    Use the API viewer from AllAPI Guide's http://www.allapi.net.

    "Brothers, you asked for it."
    ...Francisco Domingo Carlos Andres Sebastian D'Anconia

  4. #4
    Fanatic Member
    Join Date
    Feb 2002
    Location
    SE England
    Posts
    732
    What do you mean by back convert?

    Their is a list of constants they can be compared to...
    Leather Face is comin...


    MCSD

  5. #5

    Thread Starter
    Super Moderator Wokawidget's Avatar
    Join Date
    Nov 2001
    Location
    Headingly Occupation: Classified
    Posts
    9,632
    Eg: Ok, for a treeview, I want to know what the Msg 4110 is???
    ALLAPI does not back convert, you find theconstant then it gives you the value, not the other way round...

    Woka

  6. #6
    Frenzied Member axion_sa's Avatar
    Join Date
    Jan 2002
    Location
    Joburg, RSA
    Posts
    1,724
    [Edit] Took out the constant declarations

    Um, just find the hex value for the message passed, and go looksie

  7. #7

  8. #8
    Frenzied Member KayJay's Avatar
    Join Date
    Jul 2001
    Location
    Chennai
    Posts
    1,849

    "Brothers, you asked for it."
    ...Francisco Domingo Carlos Andres Sebastian D'Anconia

  9. #9
    Fanatic Member
    Join Date
    Feb 2002
    Location
    SE England
    Posts
    732
    Has that solved your problem wokawidget?
    Leather Face is comin...


    MCSD

  10. #10

  11. #11
    Fanatic Member
    Join Date
    Feb 2002
    Location
    SE England
    Posts
    732
    Ok, you need to convert the value in question into hex...

    The easiest way to do this is open the windows calculator, type in the decimal value, open the scientific section and click the hex button..

    Take this value and find it in the list of constants that axion supplied...

    if you can't tell me and ill try to find it for you.
    Leather Face is comin...


    MCSD

  12. #12

    Thread Starter
    Super Moderator Wokawidget's Avatar
    Join Date
    Nov 2001
    Location
    Headingly Occupation: Classified
    Posts
    9,632
    Basically what I am trying to do is to subclass a treeview, trap when a label edit is started, get the handle to the label edit textbox, find out it's dimensions and replace it with another control...

    Woka

  13. #13

  14. #14
    Fanatic Member
    Join Date
    Feb 2002
    Location
    SE England
    Posts
    732
    But the listview has a before label edit event, why dont you just use this..
    Leather Face is comin...


    MCSD

  15. #15

    Thread Starter
    Super Moderator Wokawidget's Avatar
    Join Date
    Nov 2001
    Location
    Headingly Occupation: Classified
    Posts
    9,632
    I am trying to keep this thread simple as not to confuse anyone, maybe I shouldn't
    Trust me, I need to subclass it...I also want to do other things as well...with small animals...Oooops, wrong web site...

    Woka

  16. #16
    Frenzied Member KayJay's Avatar
    Join Date
    Jul 2001
    Location
    Chennai
    Posts
    1,849
    Just wondering

    Could U not code a quick parser on the Win32API.txt and spit out the corresponding "WM_****" for a given Hex or Long value ?


    "Brothers, you asked for it."
    ...Francisco Domingo Carlos Andres Sebastian D'Anconia

  17. #17

    Thread Starter
    Super Moderator Wokawidget's Avatar
    Join Date
    Nov 2001
    Location
    Headingly Occupation: Classified
    Posts
    9,632
    Now u're talking Why didn't I think of that...*YAWN*

    Cheers...Will have a go, will let you know how I get on...
    Gonna write an app which allows you to work backwards using the API txt file

    Cheers,

    Woka

  18. #18
    Frenzied Member KayJay's Avatar
    Join Date
    Jul 2001
    Location
    Chennai
    Posts
    1,849

    Thumbs up

    Clicked 40,900 links, took 52 Views, and 15 replies................

    Christ! I am very slow.........

    "Brothers, you asked for it."
    ...Francisco Domingo Carlos Andres Sebastian D'Anconia

  19. #19

  20. #20
    Frenzied Member KayJay's Avatar
    Join Date
    Jul 2001
    Location
    Chennai
    Posts
    1,849
    Ok.......

    Do U know how a Type Library is formatted?

    "Brothers, you asked for it."
    ...Francisco Domingo Carlos Andres Sebastian D'Anconia

  21. #21

  22. #22
    Frenzied Member KayJay's Avatar
    Join Date
    Jul 2001
    Location
    Chennai
    Posts
    1,849
    U know win32.tlb? It has everything neatly "enum"ed. All functions, subs, constants, etc...

    "Brothers, you asked for it."
    ...Francisco Domingo Carlos Andres Sebastian D'Anconia

  23. #23
    Frenzied Member MerrionComputin's Avatar
    Join Date
    Apr 2001
    Location
    Dublin, Ireland
    Posts
    1,616
    Note that messages above WM_USER are application defined messages...so won't have an associated WM_ constant.

    Currently WM_USER = &H400
    ----8<---------------------------------------
    NEW - The .NET printer queue monitor component
    ----8<---------------------------------------
    Now with Examples of use

  24. #24
    Frenzied Member MerrionComputin's Avatar
    Join Date
    Apr 2001
    Location
    Dublin, Ireland
    Posts
    1,616
    Quick and dirty utility attached....
    Attached Files Attached Files
    ----8<---------------------------------------
    NEW - The .NET printer queue monitor component
    ----8<---------------------------------------
    Now with Examples of use

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