我装了msdn
的mfc和sdk,怎么查不到SetExtendedStyle;
应该怎么装。
那位大哥手上能查到的,帮我把所有的ExtendelStyle都列一下

解决方案 »

  1.   

    还有,怎样选中ListCtrl中任意一格
      

  2.   

    Extended List-View Styles
    List-view control styles have been extended. To employ these new styles, use the LVM_SETEXTENDEDLISTVIEWSTYLE message or one of the ListView_SetExtendedListViewStyle or ListView_SetExtendedListViewStyleEx macros.LVS_EX_BORDERSELECT 
    Version 4.71. If this style is set, when an item is selected the border color of the item changes rather than the item being highlighted. 
    LVS_EX_CHECKBOXES 
    Version 4.70. Enables check boxes for items in a list-view control. When set to this style, the control creates and sets 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 check box 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.
    Note: If this style is set, the list-view control automatically toggles the check state when the user clicks the check box or presses the space bar. 
    LVS_EX_FLATSB 
    Version 4.71. Enables flat scroll bars in the list view. If you need more control over the appearance of the list-view's scroll bars, you should manipulate the list-view's scroll bars directly using the Flat Scroll Bar APIs. If the system metrics change, you are responsible for adjusting the scrollbar metrics with FlatSB_SetScrollProp. See Flat Scroll Bars for further details. 
    LVS_EX_FULLROWSELECT 
    Version 4.70. When an item is selected, the item and all its subitems are highlighted. This style is available only in conjunction with the LVS_REPORT style. 
    LVS_EX_GRIDLINES 
    Version 4.70. Displays gridlines around items and subitems. This style is available only in conjunction with the LVS_REPORT style. 
    LVS_EX_HEADERDRAGDROP 
    Version 4.70. Enables drag-and-drop reordering of columns in a list-view control. This style is only available to list-view controls that use the LVS_REPORT style. 
    LVS_EX_INFOTIP 
    Version 4.71. When a list-view control uses the LVS_EX_INFOTIP style, the LVN_GETINFOTIP notification message is sent to the parent window before displaying an item's ToolTip. 
    LVS_EX_LABELTIP 
    Version 5.80. If a partially hidden label in any list-view mode lacks ToolTip text, the list-view control will unfold the label. If this style is not set, the list-view control will unfold partly hidden labels only for the large icon mode. 
    LVS_EX_MULTIWORKAREAS 
    Version 4.71. If the list-view control has the LVS_AUTOARRANGE style, the control will not autoarrange its icons until one or more work areas are defined (see LVM_SETWORKAREAS). To be effective, this style must be set before any work areas are defined and any items have been added to the control. 
    LVS_EX_ONECLICKACTIVATE 
    Version 4.70. The list-view control sends an LVN_ITEMACTIVATE notification message to the parent window when the user clicks an item. This style also enables hot tracking in the list-view control. Hot tracking means that when the cursor moves over an item, it is highlighted but not selected. See the Res for a discussion of item activation. 
    LVS_EX_REGIONAL 
    Version 4.71. Sets the list-view window region to include only the item icons and text using SetWindowRgn. Any area that is not part of an item is excluded from the window region. This style is only available to list-view controls that use the LVS_ICON style. 
    LVS_EX_SIMPLESELECT 
    Version 6. In icon view, moves the state image of the control to the top right of the large icon rendering. In views other than icon view there is no change. When the user changes the state by using the space bar, all selected items cycle over, not the item with the focus. 
    LVS_EX_SUBITEMIMAGES 
    Version 4.70. Allows images to be displayed for subitems. This style is available only in conjunction with the LVS_REPORT style. 
    LVS_EX_TRACKSELECT 
    Version 4.70. Enables hot-track selection in a list-view control. Hot track selection means that an item is automatically selected when the cursor remains over the item for a certain period of time. The delay can be changed from the default system setting with a LVM_SETHOVERTIME message. This style applies to all styles of list-view control. You can check whether or not hot-track selection is enabled by calling SystemParametersInfo. 
    LVS_EX_TWOCLICKACTIVATE    
    Version 4.70. The list-view control sends an LVN_ITEMACTIVATE notification message to the parent window when the user double-clicks an item. This style also enables hot tracking in the list-view control. Hot tracking means that when the cursor moves over an item, it is highlighted but not selected. See the Res for a discussion of item activation. 
    LVS_EX_UNDERLINECOLD 
    Version 4.71. Causes those non-hot items that may be activated to be displayed with underlined text. This style requires that LVS_EX_TWOCLICKACTIVATE be set also. See the Res for a discussion of item activation. 
    LVS_EX_UNDERLINEHOT 
    Version 4.71. Causes those hot items that may be activated to be displayed with underlined text. This style requires that LVS_EX_ONECLICKACTIVATE or LVS_EX_TWOCLICKACTIVATE also be set. See the Res for a discussion of item activation.