|
-
Apr 22nd, 2002, 10:04 PM
#1
Thread Starter
Member
getting windowhandle of multiple controls at a time
i previously post this question with no answer 
i m associated with the project which required to process more then one controls at the time.
and we r using SendMessage api for that process. the problem is that we can give window handle of only one control to this api and not all. there is one solution in VC++ i suppose but i didnt able to find the solution in VB.
VC++ coding will be like this one
CWnd myWnd;
myWnd.Attach(hWnd1);
myWnd.Attach(hWnd2);
myWnd.Attach(hWnd3);
....... what ever process we have to execute
myWnd.Detach();
can any one solve my problem or can give vb code on the above vc++ code???
thanx in advance.
firoz
-
Apr 22nd, 2002, 11:32 PM
#2
Frenzied Member
The question is not enough clear.. could you please explain it further what you want to do?
Do you want to send message to each control in a row?? Are the controls in your application's window or outside?
Are the controls present on the same window? if so Do you want to process each control in the window or the selected ones?
Well as far as I understood...you can get the handle of all the controls (either by traversing thru Controls Collections if within application or by EnumChildWindows API if outside the application). put all of them in an array and make a sub which sends message to each element of the array.
But again.. the question is not so clear.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|