CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5
  1. #1
    Join Date
    Sep 2008
    Posts
    2

    how to select multiple different Item and subItem in CListCtrl

    I am not sure if this is possible.
    I do not want to select the entire row.
    My Table kinda treats each entry as unique entries, I want to be able select different entry and get the info on the entries I have selected.

    for example if I have the below. I wish to be able to select X and P and be able to know that X and P are selected. Is there an example I can refer to?
    -------------------------
    |Cat A|Cat B|...
    | X | Z |
    | Y | P |

  2. #2
    Join Date
    May 1999
    Location
    ALABAMA, USA
    Posts
    9,917

    Re: how to select multiple different Item and subItem in CListCtrl

    Check MSDN for NMLVCUSTOMDRAW notification and how to use it.
    You will have to draw each cell and manage selection states.

    Lookup MSDN for samples. I remember samples showing how to use different size fonts and background colors using structure holding color and font size information and using item data to make that information persistant for eachitem.
    There are only 10 types of people in the world:
    Those who understand binary and those who do not.

  3. #3
    Join Date
    Sep 2008
    Posts
    11

    Re: how to select multiple different Item and subItem in CListCtrl

    I think using grid control is better option for your requirement.

  4. #4
    Join Date
    Oct 2002
    Location
    Timisoara, Romania
    Posts
    14,360

  5. #5
    Join Date
    Sep 2008
    Posts
    2

    Re: how to select multiple different Item and subItem in CListCtrl

    Thanx!

    I am looking at the updated MDC Grid Control 2.25. Anyone used it? I am having problems using it.
    http://www.codeproject.com/KB/miscct...k&fr=251#xx0xx

    I am creating tabs in a Dialog box. These tabs inherift from CDialog, Not CPropertyPage.
    Following the demo example, I used Custom Control to insert the object in a Dialog which later will be used as a tab).
    I also used add variable to create a Var and setup the DDX.

    when I do pDlg->Create( IDD, &m_tabs ); the return code is always a failure.
    I suspect I am not creating the object right.

    I had create a 2nd CGridCtrl in the Demo using the same method and it works just fine. Not sure what I am doing wrong here. or what must I watch out?
    Last edited by wega0007; September 29th, 2008 at 10:06 AM.

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