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,703 of 10,840   
   expvb to All   
   Re: Get Control IDs more efficiently   
   08 Dec 08 12:36:45   
   
   XPost: microsoft.public.vb.general.discussion, microsoft.public.vb   
   From: nobody@cox.net   
      
   You don't need the ID. EnumChildWindows will get all the information that   
   you need, and you can use WM_GETTEXT to get the text. The ID generally stays   
   the same between compiles, but the developer can change it at whim, so it's   
   not a fool proof method. The class name of the window generally gives you   
   the type of the window or control, so you can just match the class name, and   
   perhaps use GetParent, GetWindowRect, GetClientRect, to get the   
   relationships between windows and their position relative to each other.   
      
   --- 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