Forums before death by AOL, social media and spammers... "We can't have nice things"
|    comp.lang.visual.basic    |    MS Visual Basic discussions, NOT dot-net    |    10,840 messages    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
|    Message 10,688 of 10,840    |
|    Bill McCarthy to Don    |
|    Re: Get Control IDs more efficiently    |
|    05 Dec 08 12:10:28    |
      XPost: microsoft.public.vb.general.discussion, microsoft.public.vb       From: Bill@localhost.com              Hi Don,              You can use EnumWindows where you provide a callback method in a module, eg:              Put this method in a module              Public Function EnumWindowsProc(ByVal hwnd As Long, ByVal lParam As Long) As       Boolean        EnumWindowsProc = True ' continues       End Function              Use this decleration:              Public Declare Function EnumWindows Lib "user32" (ByVal lpEnumFunc As Long,       ByVal lParam As Long) As Long                     and then invoke it such as :              Call EnumWindows(AddressOf EnumWindowsProc, someHwnd)                     Alternatively you can use FindWindowEx, passing in the last found window as       the second parameter each time.                                          "Don" |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
(c) 1994, bbs@darkrealms.ca