LVS_EX_CHECKBOXES Version 4.70. Enables check boxes for items in a list view control. When set to this style, the control will create and set a state image list with two images using DrawFrameControl. State image 1 is the unchecked box, and state image 2 is the checked box. Setting the state image to zero removes the checkbox altogether. Check boxes are visible and functional with all list view modes. You can obtain the state of the check box for a given item with ListView_GetCheckState. To set the check state, use ListView_SetCheckState. 这是msdn中扩展属性的说明,你可以在create 或者 createex后用SetExtendedStyle();并指定LVS_EX_CHECKBOXES
我学VC很菜的!!
Version 4.70. Enables check boxes for items in a list view control. When set to this style, the control will create and set a state image list with two images using DrawFrameControl. State image 1 is the unchecked box, and state image 2 is the checked box. Setting the state image to zero removes the checkbox altogether. Check boxes are visible and functional with all list view modes. You can obtain the state of the check box for a given item with ListView_GetCheckState. To set the check state, use ListView_SetCheckState.
这是msdn中扩展属性的说明,你可以在create 或者 createex后用SetExtendedStyle();并指定LVS_EX_CHECKBOXES