Results 1 to 15 of 15

Thread: out of curiosity what does the hwnd property stand for?

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Apr 2002
    Location
    Blue Mountains NSW Australia
    Posts
    160

    out of curiosity what does the hwnd property stand for?

    ...
    handle ? window? number? d..
    Jack Daniels
    ICQ: 72074030
    VB 6.0

  2. #2
    Retired VBF Adm1nistrator plenderj's Avatar
    Join Date
    Jan 2001
    Location
    Dublin, Ireland
    Posts
    10,359
    I'd guess handleWindowNumber or something.
    But MerrionComputing is an API expert. Ask him, he might have an insight

    I can tell ya what Dim is short for though.
    "Dimension". So there
    Microsoft MVP : Visual Developer - Visual Basic [2004-2005]

  3. #3
    PowerPoster
    Join Date
    Jul 1999
    Posts
    5,923
    it's just a term for window handle. Maybe it's meant to be like the French do things, e.g Handle of Window

  4. #4
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    It should be hWnd, of which the 'h' prefix is Hungarian Notation for "handle", and "Wnd" is a window, so, it's the form's window handle for use with the API
    I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
    -- Linus Torvalds

  5. #5
    PowerPoster
    Join Date
    Jul 1999
    Posts
    5,923
    Originally posted by parksie
    It should be hWnd, of which the 'h' prefix is Hungarian Notation for "handle", and "Wnd" is a window, so, it's the form's window handle for use with the API
    hungarian/ french same thing

  6. #6
    Retired VBF Adm1nistrator plenderj's Avatar
    Join Date
    Jan 2001
    Location
    Dublin, Ireland
    Posts
    10,359
    Originally posted by parksie
    It should be hWnd, of which the 'h' prefix is Hungarian Notation for "handle", and "Wnd" is a window, so, it's the form's window handle for use with the API
    dunno why i didnt think of that.
    oh well
    Microsoft MVP : Visual Developer - Visual Basic [2004-2005]

  7. #7

    Thread Starter
    Addicted Member
    Join Date
    Apr 2002
    Location
    Blue Mountains NSW Australia
    Posts
    160
    lol I pondered that but didn't really think so, anywaz i was wrong.

    oh and sowwy for my capatilization

    Jack Daniels
    ICQ: 72074030
    VB 6.0

  8. #8
    Frenzied Member MerrionComputin's Avatar
    Join Date
    Apr 2001
    Location
    Dublin, Ireland
    Posts
    1,616
    "handle" is pretty much a throwaway term for "A unique number assigned by windows" thus you have hPen, hRgn, hDC etc..
    ----8<---------------------------------------
    NEW - The .NET printer queue monitor component
    ----8<---------------------------------------
    Now with Examples of use

  9. #9

    Thread Starter
    Addicted Member
    Join Date
    Apr 2002
    Location
    Blue Mountains NSW Australia
    Posts
    160
    Originally posted by MerrionComputin
    "handle" is pretty much a throwaway term for "A unique number assigned by windows" thus you have hPen, hRgn, hDC etc..
    oh cool that simplifies things, oddly nuff i've never heard much of the other properties
    Jack Daniels
    ICQ: 72074030
    VB 6.0

  10. #10
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    A handle is conceptually an abstracted pointer, i.e. a pointer to a pointer (but might not be a memory location, it could be an index into a pool of some kind).

    They're very useful for writing garbage collectors and anything that needs to change the pointer values.
    I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
    -- Linus Torvalds

  11. #11
    Fanatic Member
    Join Date
    Apr 2000
    Location
    Whats a location?
    Posts
    516
    Originally posted by parksie
    ... is conceptually an abstracted pointer ...
    Fancy talk... ooooooohh.
    Courgettes.

  12. #12
    Member Aerials's Avatar
    Join Date
    Jul 2002
    Location
    Chile
    Posts
    50
    Originally posted by V(ery) Basic


    Fancy talk... ooooooohh.
    lol wanted more basic talk?

  13. #13
    Fanatic Member
    Join Date
    Apr 2000
    Location
    Whats a location?
    Posts
    516

    Thumbs up

    Yeah, actually
    Courgettes.

  14. #14
    Frenzied Member
    Join Date
    Jul 2002
    Posts
    1,370
    What parksie said - dumbed down - is that handles are addresses in memory. At that address is a pointer to the gizmo you are trying to mess with.

    Some handles are offsets (as in array indexes) into a list in memory. The list is made of pointers like above... the fancy term for these lists is a masthead. Windows devices are in a list like this.

    That any better?

  15. #15
    Fanatic Member
    Join Date
    Apr 2000
    Location
    Whats a location?
    Posts
    516
    Originally posted by jim mcnamara
    That any better?
    Dont patronise me
    Courgettes.

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