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,693 of 10,840   
   expvb to Don   
   Re: Get Control IDs more efficiently   
   06 Dec 08 12:00:54   
   
   XPost: microsoft.public.vb.general.discussion, microsoft.public.vb   
   From: nobody@cox.net   
      
   "Don"  wrote in message   
   news:493a9d6d.2039234@news.west.cox.net...   
   > Looks like the way   
   > I've been doing it is the best I can hope for, then.  Unfortunately,   
   > if I use a loop of 0 to 100, for instance, I won't find an control ID   
   > with a very high number.  If I run a loop with a very high limit then   
   > it may take longer than I want . . . but works.   
      
   What about using GetWindowLong(GWL_ID) as Scott Seligman suggested, or   
   calling GetDlgCtrlID()?   
      
   --- 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