CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    May 1999
    Posts
    92

    Adding lines to a CListCtrl

    Does anyone know how to add lines to a CListCtrl to make it look like a grid?


  2. #2
    Guest

    Re: Adding lines to a CListCtrl

    try this

    CListCtrl* pMyList;
    ...
    DWORD dwStyle = pMyList->SendMessage(LVM_GETEXTENDEDLISTVIEWSTYLE, 0, 0);
    dwStyle |= LVS_EX_FULLROWSELECT;
    dwStyle |= LVS_EX_GRIDLINES;
    dwStyle |= LVS_EX_HEADERDRAGDROP;
    pMyList->SendMessage(LVM_SETEXTENDEDLISTVIEWSTYLE, 0, dwStyle);

    Michael Hagen


  3. #3
    Join Date
    May 1999
    Posts
    92

    Re: Adding lines to a CListCtrl

    thank you.


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

Featured