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,702 of 10,840    |
|    Scott Seligman to Don    |
|    Re: Get Control IDs more efficiently    |
|    08 Dec 08 08:11:01    |
      XPost: microsoft.public.vb.general.discussion, microsoft.public.vb       From: seligman@example.com              dsarvas@yahoo.com (Don) wrote:       >       >Regarding your question why I needed the ID, from all my searching of       >Usenet groups and the web, I was under the impression the only way to       >find the text from all the controls on all the windows, I would need       >to use the GetDlgCtrlItem() function and that required finding the       >control's ID.              No. There are plenty of windows you might want to get the text for       that won't even have a Control ID.              It is really best to use some function like EnumChildWindows to find       the handles to all the child windows and access the windows directly.       Having an ID is generally only useful if you know it ahead of time, if       you're discovering an ID just to talk to the window, you might was well       skip the middle step and just talk to the window.              --       --------- Scott Seligman |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
(c) 1994, bbs@darkrealms.ca