how to select all checkboxs in invite window

You can talk about VB programming here

how to select all checkboxs in invite window

Postby method » Mon Nov 12, 2007 9:32 pm


Hi all. could any one show me how i can select all checkboxs in invite window. I am looking for a way that i don't have to select them all manually. It would be nice if by one click all of them get selected.Hope some one show me a way to do it.Thanks
method
imFiles Master
imFiles Master
 
Posts: 686
Joined: Tue Oct 18, 2005 11:12 am

Re: how to select all checkboxs in invite window

Postby Chike » Thu Nov 15, 2007 3:01 pm

This is a real bummer. It's a SysListView32 and I made a message trace on it but nuthing that look meaningful there.
I am guessing you may be able to check them by sending WM_LBUTTONDOWN with MK_LBUTTON (I noticed right mouse button works too.)
The coordinates for the mouse location you'll have calculate from the results of LVM_GETITEMRECT, LVM_GETORIGIN, and potentialy LVM_GETITEMPOSITION (not sure as i never saw results from those messages,) iterating through all the items.

This is all theoretical but might work. Other measures might be needed for instance if the list check the real mouse location you may need to place it over the item, which imply you may need to scroll the list to make items visible.
Image
Chike
imFiles Master
imFiles Master
 
Posts: 583
Joined: Sun May 13, 2007 6:20 pm

Re: how to select all checkboxs in invite window

Postby Chike » Thu Nov 15, 2007 4:30 pm

Forgot to mention that you'll have to use the same method being used at autopilot's VB6 select/highlight ListView Item to pass the POINT and RECT structures for these messages.
Image
Chike
imFiles Master
imFiles Master
 
Posts: 583
Joined: Sun May 13, 2007 6:20 pm


Return to Visual Basic Programming

 


  • Related topics
    Replies
    Views
    Last post

Who is online

Users browsing this forum: No registered users and 0 guests