home bbs files messages ]

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,690 of 10,840   
   Dean Earley to Don   
   Re: Get Control IDs more efficiently   
   05 Dec 08 17:08:37   
   
   XPost: microsoft.public.vb.general.discussion   
   From: dean.earley@icode.co.uk   
      
   Don wrote:   
   > Regarding the two suggestions offered so far, I see I wasn't clear in   
   > my original post..   
   >   
   > I'm using EnumWindows and EnumChildWindows to get all the window   
   > handles and their IDs which works fine.  But it's all the controls   
   > inside each window for which I need their IDs (text boxes, command   
   > buttons, etc.).  Creating a loop to test all possible ID numbers does   
   > work, but it would be much better if there an equivalent of the   
   > EnumWindows function that also enumerates all the control IDs inside   
   > the window.   
      
   Controls ARE windows, and they are hierarchial.   
   EnumWindows to get the top level windows, EnumChildWindows() to get the   
   child windows/controls of that, EnumChildWindows() to get the child   
   windows/controls of that, etc...   
      
      
   --   
   Dean Earley (dean.earley@icode.co.uk)   
   i-Catcher Development Team   
      
   iCode Systems   
      
   --- 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