There are two messages that set and retrieve extended style information, LVM_SETEXTENDEDLISTVIEWSTYLE and LVM_GETEXTENDEDLISTVIEWSTYLE. You do not use the GetWindowLong and SetWindowLong functions to make extended style changes. You do not access extended list-view styles in the same manner as standard window styles. For a complete list, see Extended List-View Styles. The extended list-view control styles provide options such as check boxes, flat scroll bars, grid lines, and hot-tracking. For a complete list, see List-View Window Styles. To determine the current alignment, use the LVS_ALIGNMASK value.Īdditional window styles provide other options, such as whether a user can edit labels or select more than one item at a time. You can change the alignment after you create a list-view control. You can control the way items are arranged in icon or small icon view by specifying either the LVS_ALIGNTOP (default) or LVS_ALIGNLEFT window style. To determine the window styles of the current view, use the LVS_TYPEMASK value. To retrieve and change the window style, use the GetWindowLong and SetWindowLong functions. You can change the view type after you create a list-view control. The following screen shot shows the tile view. The following screen shot shows the list view. The following screen shot shows the icon view. The following screen shot shows the details view. The visual styles for the control have been set to the "Explorer" theme by using SetWindowTheme. The views demonstrate how the information might appear on Windows Vista. The following screen shots use views to show different amounts of information about each of seven pets. Each item appears as a full-sized icon with a label of one or more lines beside it. Specified by passing LV_VIEW_TILE with LVM_SETVIEW. Each column has a header, unless you also specify the LVS_NOCOLUMNHEADER window style. Subsequent columns contain subitems as specified by the application. The leftmost column is always left justified and contains the small icon and label. Each item appears on its own line, with information arranged in columns. Specified by the LVS_REPORT window style or by passing LV_VIEW_DETAILS with LVM_SETVIEW. Items are arranged in columns and the user cannot drag them to an arbitrary location. Each item appears as a small icon with a label to the right of it. Specified by the LVS_LIST window style or by passing LV_VIEW_LIST with LVM_SETVIEW. The user can drag the items to any location. Each item appears as a small icon with the label to the right of it. Specified by the LVS_SMALLICON window style or by passing LV_VIEW_SMALLICON with LVM_SETVIEW. The user can drag the items to any location in the list-view window. Each item appears as a full-sized icon with a label below it. Specified by the LVS_ICON window style or by passing LV_VIEW_ICON with the LVM_SETVIEW message. Additional window styles specify the alignment of items and control-specific features. The control's window style specifies the default view. List-view controls can display items in five different views.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |