Results 1 to 2 of 2

Thread: getting windowhandle of multiple controls at a time

  1. #1

    Thread Starter
    Member
    Join Date
    May 2001
    Location
    india
    Posts
    42

    Question 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

  2. #2
    Frenzied Member moinkhan's Avatar
    Join Date
    Jun 2000
    Location
    Karachi, Pakistan
    Posts
    2,011
    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
  •  



Click Here to Expand Forum to Full Width