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,687 of 10,840    |
|    Don to All    |
|    Get Control IDs more efficiently    |
|    04 Dec 08 21:07:40    |
      XPost: microsoft.public.vb.general.discussion, microsoft.public.vb       From: dsarvas@yahoo.com              I'm using the GetDlgItem function to get the text from a specific       control in external apps. Works fine, but if I don't know the control       ID, I create a loop (e.g. 0 to 100) to test all the control IDs in       that range to find the control. Problem is that a control can have a       very large number as the ID and I enumerate through all windows and       their child windows so that can create a little more delay than I want       and I would never be sure my loop is a range that covers the highest       control ID number.              Is there an API function or a way to grab all the control ID numbers       on a window rather than looping through a range of numbers to find a       control that matches that ID number?              Thanks,       Don              --- SoupGate-Win32 v1.05        * Origin: you cannot sedate... all the things you hate (1:229/2)    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
(c) 1994, bbs@darkrealms.ca