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,707 of 10,840   
   Dean Earley to Don   
   Re: Get Control IDs more efficiently   
   09 Dec 08 09:16:14   
   
   XPost: microsoft.public.vb.general.discussion   
   From: dean.earley@icode.co.uk   
      
   Don wrote:   
   > WOW!  Thanks to ALL of you, I now have just what I was looking for.   
   >   
   > It took a little of EVERYTHING you all had to offer.   
   >   
   > Although I still have to grab the control IDs to find all text on all   
   > controls, it now works nearly instantaneously now that I don't have to   
   > loop through a long range of numbers just to be sure I didn't miss a   
   > control.  I still can't figure out how to get the text without the   
   > IDs, but now that I can do so instantaneously using all the functions   
   > you've pointed out, it's a moot point . . . for me, anyway.   
      
      
   > Test = GetDlgCtrlID(lastHandle)   
   > lngCtrlHWND = GetDlgItem(hwnd, Test)   
      
   Erm..   
   lngCtrlHWND = lastHandle   
      
   You get the control ID for a given hWnd using GetDlgCtrlID(), then ask   
   for its hWnd back again with GetDlgItem().   
      
   --   
   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