CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: List View

  1. #1
    Guest

    List View

    I want to subclass the CListCtrl of a CListView to repond to mouse button clicks. In the OnInitialUpdate() of my CListView I tried but failed using


    m_ctlMyListCtrl.SubclassDlgItem( GetListCtrl().GetDlgCtrlID(), this );







  2. #2
    Join Date
    May 1999
    Location
    Seattle, WA USA
    Posts
    423

    Re: List View

    try SubclassWindow, like

    CListCtrl* pList = (CListCtrl*)GetDlgItem (IDC_LIST_FIELDS);
    if (!m_List.SubclassWindow (pList->m_hWnd))
    return FALSE;



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