Results 1 to 2 of 2

Thread: Get Control tag knowing only the hWnd

  1. #1
    Guest

    Lightbulb

    Heya Folks,
    Do any of you guru's know how to retrieve a control's tag knowing only the window handle?
    I am building a scrolling container control that paints a control's tag as a label and am getting the tag currently by subclassing WM_PARENTNOTIFY/WM_CREATE, then scrolling through the contained controls collection to find the matching hWnd, placing the tag in an array w/ the hWnd, then scrolling through that array whenever I need the tag to repaint the label.

    (I know you cats are thinkin' man...how Lame!)

    Wouldn't it be cool to have a:
    Function GetTagFromhWnd(hWnd) as Variant

    Lemme know and if anyone has region/update/scrollwindowsEx questions, gimme a yell!
    regards, Elrey



  2. #2
    Junior Member
    Join Date
    May 2000
    Posts
    25
    Check out the example for FindWindowEx at vbapi.com.
    Maybe that'll help

    _______

    Bob K.

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