PDA

Click to See Complete Forum and Search --> : Get Control tag knowing only the hWnd


May 18th, 2000, 05:44 AM
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

Bob724
May 18th, 2000, 10:56 PM
Check out the example for FindWindowEx at vbapi.com.
Maybe that'll help

_______

Bob K.