Announcement

Collapse
No announcement yet.

Select an Entire Row with List View

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Select an Entire Row with List View

    Greetings All,

    Can anybody help me with the following two queries.

    1. I want to be able to highlight an entire row when
    I select an item in a ListView control.

    2. I want to ba able to select any item in any column to
    cause the selection to highlight. At present, when I
    create my listview, only the items in the first col
    can be selected (and highlighted).

    Any assistance would be much appreciated.

    Regards

    Andrew Lindsay


    ------------------
    --------------
    andrew dot lindsay at westnet dot com dot au

  • #2
    To get a full row select, add the following:
    Code:
      Control Send hDlg, %LISTVIEW, %LVM_GETEXTENDEDLISTVIEWSTYLE, 0, 0 To lRet                 
      lRet = lRet Or %LVS_EX_FULLROWSELECT                                                             
      Control Send hDlg, %LISTVIEW, %LVM_SETEXTENDEDLISTVIEWSTYLE, 0, lRet
    ------------------
    Peter.
    mailto[email protected][email protected]</A>
    Regards,
    Peter

    Comment

    Working...
    X