Results 1 to 2 of 2

Thread: Lvm_getcolumnorderarray

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Nov 1999
    Posts
    17

    Lvm_getcolumnorderarray

    friends,

    i am using vb 6.0 with SP3.
    i have listview control of comctl32.dll.

    the funcitonality of this has been enhanched to allow column move at run time using LST_MOVECOLUMN.

    i want to know how to use LVM_GETCOLUMNORDERARRAY, which would return the positions of the columns in the listview.

    if u can tell me the vb code, i will be thankful.
    thank u,
    jeyasree.

  2. #2
    Fanatic Member crispin's Avatar
    Join Date
    Aug 2000
    Location
    2 clicks west of a Quirkafleeg...Cornwall, England
    Posts
    754
    FROM MSDN:

    LVM_GETCOLUMNORDERARRAY


    Retrieves the current left-to-right order of columns in a list-view control. You can send this message explicitly or use the ListView_GetColumnOrderArray macro.

    LVM_GETCOLUMNORDERARRAY
    wParam = (WPARAM) (int) iCount;
    lParam = (LPARAM) lpiArray;

    Parameters
    iCount
    Number of columns in the list-view control.
    lpiArray
    Address of an array of integers that receives the index values of the columns in the list-view control. The array must be large enough to hold iCount elements.
    Return Values
    If successful, returns nonzero, and the buffer at lpiArray receives the column index of each column in the control in the order they appear from left to right. Otherwise, the return value is zero.


    Sample Snippet:
    Code:
    ReDim cols(0 To .ColumnHeaders.Count - 1) As Long
    nRet = SendMessage(.hwnd, LVM_GETCOLUMNORDERARRAY,
    .ColumnHeaders.Count, cols(0))
    Crispin
    VB6 ENT SP5
    VB.NET
    W2K ADV SVR SP3
    WWW.BLOCKSOFT.CO.UK

    [Microsoft Basic: 1976-2001, RIP]

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