Announcement

Collapse
No announcement yet.

Anchor column in ListView?

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

  • Michael Mattias
    replied
    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

    Leave a comment:


  • Patrice Terrier
    started a topic Anchor column in ListView?

    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 ?

    ...
Working...
X