Announcement

Collapse
No announcement yet.

Anchor column in ListView?

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

  • Anchor column in ListView?

    Does there is a specific message to anchor a column in a ListView that could be resized.

    Such as the width of the anchored column would change, based on the size of the resized ListView control ?

    ...
    Patrice Terrier
    www.zapsolution.com
    www.objreader.com
    Addons: GDImage.DLL 32/64-bit (Graphic library), WinLIFT.DLL 32/64-bit (Skin Engine).

  • #2
    I don't know about 'anchor' columns, but you can always resize any desired column of a listview with ListView_SetColumnWidth.

    Typically you'd do this when resizing the listview itself, which you'd typically do when the parent window/dialog gets a WM_SIZE notification.

    Code:
       CASE %WM_SIZE 
                hLV = GetDlgITem(hWnd, %ID_LISTVIEW)
                SetWindowPos  hLV  .....
                Listview_SetColumnWidth .....
    MCM
    Michael Mattias
    Tal Systems Inc. (retired)
    Racine WI USA
    [email protected]
    http://www.talsystems.com

    Comment

    Working...
    X