INDEX CLUSTER FEATURES SHORT FRAMES NO FRAMES

indexing

title: "Visual Eiffel Library.", "Win32 API: ListView Functions (macros)"
project: "Visual Eiffel Win32 Library"
revision: "$Revision: 1.2 $"
copyright: "Copyright (C) 1996-2005 Object Tools Group"
license: "http://visual-eiffel.com/license"
cluster: winlib
class WAPI_LISTVIEW_FUNCTIONS
inherit

WAPI_MACRO
end

WAPI_MESSAGE_AND_MESSAGE_QUEUE_FUNCTIONS
end

WAPI_LISTVIEW_CONST
end
feature -- Access

frozen ListView_DeleteAllItems (hwnd: INTEGER)
require
correct_hwnd: hwnd /= null_

frozen ListView_DeleteColumn (hwnd, icol: INTEGER)
require
correct_hwnd: hwnd /= null_
correct_icol: icol >= 0

frozen ListView_DeleteItem (hwnd, i: INTEGER)
require
correct_hwnd: hwnd /= null_
correct_i: i >= 0

frozen ListView_EnsureVisible (hwndlv, i: INTEGER; fpartialok: BOOLEAN)
require
correct_hwndlv: hwndlv /= null_
correct_i: i >= 0

frozen ListView_FindItem (hwnd, istart: INTEGER; plvfi: WAPI_LV_FINDINFO): INTEGER
-- The `ListView_FindItem' macro searches for a list view item
-- with the specified characteristics. You can use this macro
-- or explicitly send the `LVM_FINDITEM' message.
require
correct_hwnd: hwnd /= null_
correct_istart: istart >= 0
correct_plvfi: plvfi /= void

frozen ListView_GetBkColor (hwnd: INTEGER): INTEGER
-- The `ListView_GetBkColor' macro retrieves the background color
-- of a list view control. You can use this macro or explicitly send
-- the `LVM_GETBKCOLOR' message.
require
correct_hwnd: hwnd /= null_

frozen ListView_GetColumn (hwnd, icol: INTEGER; pcol: POINTER)
-- The `ListView_GetColumn' macro retrieves the attributes of a
-- list view control's column. You can use this macro or explicitly
-- send the `LVM_GETCOLUMN' message.
require
correct_hwnd: hwnd /= null_
correct_icol: icol >= 0
correct_pcol: pcol /= default_pointer

frozen ListView_GetColumnWidth (hwnd, icol: INTEGER): INTEGER
require
correct_hwnd: hwnd /= null_
correct_icol: icol >= 0

frozen ListView_GetExtendedListViewStyle (hwndlv: INTEGER): BIT 32
require
correct_hwnd: hwndlv /= null_

frozen ListView_GetImageList (hwnd, iimagelist: INTEGER): INTEGER
-- The `ListView_GetImageList' macro retrieves the handle to an
-- image list used for drawing list view items. You can use this
-- macro or explicitly send the `LVM_GETIMAGELIST' message.
require
correct_hwnd: hwnd /= null_
correct_iimagelist: (iimagelist = lvsil_normal) or (iimagelist = lvsil_small) or (iimagelist = lvsil_state)

frozen ListView_GetItem (hwnd: INTEGER; pitem: POINTER)
-- The `ListView_GetItem' macro retrieves some or all of a list view
-- item's attributes. You can use this macro or explicitly send
-- the `LVM_GETITEM' message.
require
correct_hwnd: hwnd /= null_
correct_pitem: pitem /= default_pointer

frozen ListView_GetItemCount (hwnd: INTEGER): INTEGER
-- The `ListView_GetItemCount' macro retrieves the number of items
-- in a list view control. You can use this macro or explicitly send
-- the `LVM_GETITEMCOUNT' message.
require
correct_hwnd: hwnd /= null_

frozen ListView_GetItemState (hwndlv, i: INTEGER; mask: BIT 32): BIT 32
require
correct_hwnd: hwndlv /= null_
correct_i: i >= 0

frozen ListView_GetItemText (hwndlv, i, isubitem_: INTEGER; psztext_: POINTER; cchtextmax_: INTEGER)
require
correct_hwnd: hwndlv /= null_
correct_i: i >= 0
correct_isubitem: isubitem_ >= 0
correct_psztext: psztext_ /= default_pointer
correct_cchtextmax: cchtextmax_ >= 0

frozen ListView_GetNextItem (hwnd, i: INTEGER; flags: BIT 32): INTEGER
-- The `ListView_GetNextItem' macro searches for a list view item
-- that has the specified properties and bears the specified
-- relationship to a specified item. You can use this macro or
-- explicitly send the `LVM_GETNEXTITEM' message.
require
correct_hwnd: hwnd /= null_
correct_i: (i >= 0) or (i = -1)

frozen ListView_GetTopIndex (hwndlv: INTEGER): INTEGER
require
correct_hwnd: hwndlv /= null_

frozen ListView_GetSelectedCount (hwndlv: INTEGER): INTEGER
-- Determine the number of selected items in a list-view control.
require
correct_hwnd: hwndlv /= null_

frozen ListView_HitTest (hwndlv: INTEGER; pinfo: POINTER): INTEGER
-- The `ListView_HitTest' macro determines which list view item,
-- if any, is at a specified position. You can use this macro or
-- explicitly send the LVM_HITTEST message.
require
correct_hwndlv: hwndlv /= null_
correct_pinfo: pinfo /= default_pointer

frozen ListView_InsertColumn (hwnd, icol: INTEGER; pcol: WAPI_LV_COLUMN): INTEGER
-- The `ListView_InsertColumn' macro inserts a new column in
-- a list view control. You can use this macro or explicitly send
-- the `LVM_INSERTCOLUMN' message.
require
correct_hwnd: hwnd /= null_
correct_icol: icol >= 0
correct_pcol: pcol /= void

frozen ListView_InsertItem (hwnd: INTEGER; pitem: WAPI_LV_ITEM): INTEGER
-- The `ListView_InsertItem' macro inserts a new item in a
-- list view control. You can use this macro or explicitly send
-- the `LVM_INSERTITEM' message.
require
correct_hwnd: hwnd /= null_
correct_pitem: pitem /= void

frozen ListView_SetBkColor (hwnd, clrbk: INTEGER)
-- The `ListView_SetBkColor' macro sets the background color of a
-- list view control. You can use this macro or explicitly send
-- the `LVM_SETBKCOLOR' message.
require
correct_hwnd: hwnd /= null_

frozen ListView_SetColumn (hwnd, icol: INTEGER; pcol: WAPI_LV_COLUMN)
-- The `ListView_SetColumn' macro sets the attributes of a list view
-- column. You can use this macro or explicitly send the
-- `LVM_SETCOLUMN' message.
require
correct_hwnd: hwnd /= null_
correct_icol: icol >= 0
correct_pcol: pcol /= void

frozen ListView_SetColumnWidth (hwnd, icol, cx: INTEGER)
-- The `ListView_SetColumnWidth' macro changes the width of a column
-- in report or list view. You can use this macro or explicitly send
-- the `LVM_SETCOLUMNWIDTH' message.
require
correct_hwnd: hwnd /= null_
correct_icol: icol >= 0
correct_cx: (cx >= 0) or (cx = lvscw_autosize) or (cx = lvscw_autosize_useheader)

frozen ListView_SetExtendedListViewStyle (hwndlv: INTEGER; dw: BIT 32): BIT 32
require
correct_hwnd: hwndlv /= null_

frozen ListView_SetImageList (hwnd, himl, iimagelist: INTEGER): INTEGER
-- The `ListView_SetImageList' macro assigns an image list
-- to a list view control. You can use this macro or explicitly send
-- the `LVM_SETIMAGELIST' message.
require
correct_hwnd: hwnd /= null_
correct_himl: himl /= null_
correct_iimagelist: (iimagelist = lvsil_normal) or (iimagelist = lvsil_small) or (iimagelist = lvsil_state)

frozen ListView_SetItem (hwnd: INTEGER; pitem: WAPI_LV_ITEM)
-- The `ListView_SetItem' macro sets some or all of a list view
-- item's attributes. You can use this macro or explicitly send
-- the `LVM_SETITEM' message.
require
correct_hwnd: hwnd /= null_
correct_pitem: pitem /= void

frozen ListView_SetItemState (hwndlv, i: INTEGER; data, mask: BIT 32)
-- The `ListView_SetItemState' macro changes the state of an item
-- in a list view control. You can use this macro or explicitly send
-- the `LVM_SETITEMSTATE' message.

frozen ListView_SetItemText (hwndlv, i, isubitem_: INTEGER; psztext_: STRING)
require
correct_hwnd: hwndlv /= null_
correct_i: i >= 0
correct_isubitem: isubitem_ >= 0

frozen ListView_SubItemHitTest (hwnd: INTEGER; plvhti: POINTER): INTEGER
require
correct_hwnd: hwnd /= null_
correct_plvhti: plvhti /= default_pointer

frozen ListView_Update (hwnd: INTEGER; iitem: INTEGER): BOOLEAN
-- Update a list-view item.
require
correct_hwnd: hwnd /= null_
end -- class WAPI_LISTVIEW_FUNCTIONS

INDEX CLUSTER FEATURES SHORT FRAMES NO FRAMES