1. Computer problem? Tech Support Guy is completely free -- paid for by advertisers and donations. Click here to join today! If you're new to Tech Support Guy, we highly recommend that you visit our Guide for New Members.

VC++ List Control with Checkboxes

Discussion in 'Software Development' started by haritadala, Jul 3, 2003.

Thread Status:
Not open for further replies.
  1. haritadala

    haritadala Thread Starter

    Joined:
    Jul 3, 2003
    Messages:
    1
    Hello all

    I created an mfc application which uses List Control. I want to use checkboxes in this List, I set the property like

    listctrl.SetExtendedStyle(LVS_EX_CHECKBOXES);

    Now I'm able to list checkboxes in list control. But the problem is when I'm clicking on checkbox the entire row is not being highlighted. I used LVS_EX_FULLROWSELECT flag but of no use.
    I'm using LIST view style for this list control.

    How to code so that the checkbox is checked/unchecked if I click on checkbox as well as the label associated with checkbox. Similarly background should be highlighted if the checkbox state is checked. It seems in this case both checkbox and label are acting independent of each other.

    Pls help me with an example , Thanks in advance.
     
As Seen On
As Seen On...

Welcome to Tech Support Guy!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.

Join over 733,556 other people just like you!

Thread Status:
Not open for further replies.

Short URL to this thread: https://techguy.org/144282

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice