Results 1 to 6 of 6

Thread: Is there a quicker way to select an item in an external listview? (see code inside)

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Jul 2003
    Posts
    1,269

    Is there a quicker way to select an item in an external listview? (see code inside)

    VB Code:
    1. With myLVitem
    2.       .mask = LVIF_STATE
    3.       .state = &HF
    4.       .stateMask = LVIS_SELECTED Or LVIS_FOCUSED
    5.       End With
    6.      
    7.         dmWriteProcessData lvItemPointer, VarPtr(myLVitem), Len(myLVitem)
    8.         apiResult = SendMessage(lvWindow, LVM_SETITEMSTATE, 1, lvItemPointer)
    is what im currently using to select the item.. but the thing is i have to use SendMessage multiple times to select multiple items.. is there a way to select multiple items using only one sendmessage call?

  2. #2

  3. #3
    New Member
    Join Date
    Mar 2003
    Posts
    5
    VaxoP,
    how do you select an item in an external listview? I am trying to select an item in an external listview but no luck. So, can you please post the example code that work for you.

    Thank you very much in advance.

  4. #4
    Addicted Member
    Join Date
    Mar 2005
    Posts
    205

    Re: Is there a quicker way to select an item in an external listview? (see code inside)

    yeh i would like to see the code too please

  5. #5
    Addicted Member
    Join Date
    Dec 2005
    Posts
    230

    Re: Is there a quicker way to select an item in an external listview? (see code inside)

    im also interested the way you select the item VaxoP, would you share the code ?

  6. #6
    Frenzied Member
    Join Date
    Apr 2005
    Posts
    1,907

    Re: Is there a quicker way to select an item in an external listview? (see code inside)

    I am intrested in the same code. could u share it . Furthermore, how to hightlight the first item in the listview?Thanks

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