以下消息分WIN95/NT:(WIN95/Unicode)
(Win95)
Public Const WC_LISTVIEWA = "SysListView32"
Public Const WC_LISTVIEW = WC_LISTVIEWA
(Unicode)
Public Const WC_LISTVIEWW = "SysListView32"
Public Const WC_LISTVIEW = WC_LISTVIEWW
(Other - not Win32)
Public Const WC_LISTVIEW "SysListView"
ListView Messages (lvm_) (Generic)
Public Const Lvm_getbkcolor = (lvm_first + 0)
Public Const Lvm_setbkcolor = (Lvm_first + 1)
Public Const lvm_getimagelist = (Lvm_first + 2)
Public Const lvm_setimagelist = (Lvm_first + 3)
Public Const Lvm_getitemcount = (Lvm_first + 4)
Public Const Lvm_deleteitem = (Lvm_first + 8)
Public Const Lvm_deleteallitems = (Lvm_first + 9)
Public Const Lvm_getcallbackmask = (Lvm_first + 10)
Public Const Lvm_setcallbackmask = (Lvm_first + 11)
Public Const Lvm_getnextitem = (Lvm_first + 12)
Public Const lvm_setitemposition = (Lvm_first + 15)
Public Const lvm_getitemposition = (Lvm_first + 16)
Public Const Lvm_hittest = (Lvm_first + 18)
Public Const lvm_ensurevisible = (Lvm_first + 19)
Public Const Lvm_scroll = (Lvm_first + 20)
Public Const Lvm_redrawitems = (Lvm_first + 21)
Public Const Lvm_arrange = (Lvm_first + 22)
Public Const Lvm_geteditcontrol = (Lvm_first + 24)
Public Const Lvm_deletecolumn = (Lvm_first + 28)
Public Const Lvm_getcolumnwidth = (lvm_first + 29)
Public Const Lvm_setcolumnwidth = (Lvm_first + 30)
Public Const Lvm_getheader = (Lvm_first +) ' IE 3+ only
Public Const Lvm_createdragimage = (Lvm_first + 33)
Public Const Lvm_getviewrect = (Lvm_first + 34)
Public Const Lvm_gettextcolor = (Lvm_first + 35)
Public Const Lvm_settextcolor = (Lvm_first + 36)
Public Const Lvm_gettextbkcolor = (Lvm_first + 37)
Public Const Lvm_settextbkcolor = (Lvm_first + 38)
Public Const Lvm_gettopindex = (Lvm_first + 39)
Public Const Lvm_getcountperpage = (Lvm_first + 40)
Public Const Lvm_getorigin = (Lvm_first + 41)
Public Const lvm_update = (Lvm_first + 42)
Public Const lvm_setitemstate = (Lvm_first + 43)
Public Const lvm_getitemstate = (Lvm_first + 44)
Public Const Lvm_setitemcount = (Lvm_first + 47)
Public Const Lvm_sortitems = (Lvm_first + 48)
Public Const Lvm_setitemposition32 = (Lvm_first + 49)
Public Const Lvm_getselectedcount = (Lvm_first + 50)
Public Const lvm_getitemspacing = (Lvm_first + 51)
Public Const lvm_seticonspacing = (Lvm_first +) ' IE 3+ only
Public Const Lvm_getsubitemrect = (Lvm_first + 56)
Public Const Lvm_subitemhittest = (Lvm_first + 57)
Public Const Lvm_setcolumnorderarray = (Lvm_first + 58)
Public Const Lvm_getcolumnorderarray = (Lvm_first + 59)
Public Const Lvm_sethotitem = (Lvm_first + 60)
Public Const Lvm_gethotitem = (Lvm_first + 61)
Public Const Lvm_sethotcursor = (Lvm_first + 62)
Public Const Lvm_gethotcursor = (Lvm_first + 63)
Public Const Lvm_approximateviewrect = (Lvm_first + 64)
Public Const Lvm_setworkarea = (Lvm_first + 65)
Public Const Lvm_getselectionmark = (Lvm_first +) ' Win32 and IE 4 only
Public Const Lvm_setselectionmark = (Lvm_first +) ' Win32 and IE 4 only
Public Const Lvm_getworkarea = (Lvm_first +) ' Win32 and IE 4 only
Public Const Lvm_sethovertime = (Lvm_first +) ' Win32 and IE 4 only
Public Const Lvm_gethovertime = (lvm_first +-) ' Win32 and IE 4 only
ListView Messages (lvm_) (WIN95)
Public Const Lvm_getitem = (Lvm_first + 5)
Public Const Lvm_setitem = (Lvm_first + 6)
Public Const Lvm_insertitema = (Lvm_first + 7)
Public Const Lvm_insertitem = Lvm_insertitema
Public Const Lvm_finditema = (Lvm_first + 13)
Public Const Lvm_finditem = Lvm_finditema
Public Const Lvm_getstringwidtha = (Lvm_first + 17)
Public Const lvm_getstringwidth = Lvm_getstringwidtha
Public Const Lvm_editlabela = (Lvm_first + 23)
Public Const Lvm_editlabel = Lvm_editlabela
Public Const Lvm_getcolumna = (Lvm_first + 25)
Public Const Lvm_getcolumn = Lvm_getcolumna
Public Const Lvm_setcolumna = (Lvm_first + 26)
Public Const Lvm_setcolumn = Lvm_setcolumna
Public Const Lvm_insertcolumna = (Lvm_first + 27)
Public Const Lvm_insertcolumn = Lvm_insertcolumna
Public Const Lvm_getitemtexta = (Lvm_first + 45)
Public Const Lvm_getitemtext = lvm_getitemtexta
Public Const Lvm_setitemtexta = (Lvm_first + 46)
Public Const Lvm_setitemtext = lvm_setitemtexta
Public Const Lvm_getisearchstringa = (Lvm_first + 52)
Public Const lvm_getisearchstring = Lvm_getisearchstringa
Public Const Lvm_setbkimagea = (Lvm_first +) ' Win32 and IE 4 only
Public Const Lvm_getbkimagea = (lvm_first +-) ' Win32 and IE 4 only
Public Const lvbkimage = Lvbkimagea ' Win32 and IE 4 only
Public Const lplvbkimage = Lplvbkimagea ' Win32 and IE 4 only
Public Const lvm_setbkimage = Lvm_setbkimagea ' Win32 and IE 4 only
Public Const lvm_getbkimage = Lvm_getbkimagea ' Win32 and IE 4 only
ListView Messages (lvm_) (Unicode)
Public Const Lvm_getitem = (Lvm_first + 75)
Public Const Lvm_setitem = (Lvm_first + 76)
Public Const LVM_INSERTITEMW = (Lvm_first + 77)
Public Const Lvm_insertitem = LVM_INSERTITEMW
Public Const LVM_FINDITEMW = (Lvm_first + 83)
Public Const Lvm_finditem = LVM_FINDITEMW
Public Const LVM_GETSTRINGWIDTHW = (Lvm_first + 87)
Public Const lvm_getstringwidth = lvm_getstringwidthw
Public Const Lvm_editlabelw = (Lvm_first + 118)
Public Const Lvm_editlabel = Lvm_editlabelw
Public Const LVM_GETCOLUMNW = (Lvm_first + 95)
Public Const Lvm_getcolumn = LVM_GETCOLUMNW
Public Const LVM_SETCOLUMNW = (Lvm_first + 96)
Public Const Lvm_setcolumn = LVM_SETCOLUMNW
Public Const LVM_INSERTCOLUMNW = (Lvm_first + 97)
Public Const Lvm_insertcolumn = LVM_INSERTCOLUMNW
Public Const LVM_GETITEMTEXTW = (Lvm_first + 115)
Public Const Lvm_getitemtext = LVM_GETITEMTEXTW
Public Const LVM_SETITEMTEXTW = (lvm_first + 116)
Public Const Lvm_setitemtext = LVM_SETITEMTEXTW
Public Const Lvm_getisearchstringw = (Lvm_first + 117)
Public Const lvm_getisearchstring = Lvm_getisearchstringw
Public Const Lvm_getbkimagew = (lvm_first + 139) ' Win32 and IE 4 only
Public Const Lvm_setbkimagew = (lvm_first + 138) ' Win32 and IE 4 only
Public Const lvbkimage = Lvbkimagew ' Win32 and IE 4 only
Public Const lplvbkimage = Lplvbkimagew ' Win32 and IE 4 only
Public Const lvm_setbkimage = Lvm_setbkimagew ' Win32 and IE 4 only
Public Const lvm_getbkimage = Lvm_getbkimagew ' Win32 and IE 4 only
ListView Extended Style Messages (LVS_EX_) (Win95)
Public Const LVS_EX_GRIDLINES = &H1
Public Const LVS_EX_SUBITEMIMAGES = &H2
Public Const LVS_EX_CHECKBOXES = &H4
Public Const LVS_EX_TRACKSELECT = &H8
Public Const LVS_EX_HEADERDRAGDROP = &H10
Public Const LVS_EX_FULLROWSELECT = &H20 'applies to report mode only
Public Const LVS_EX_ONECLICKACTIVATE = &H40
Public Const LVS_EX_TWOCLICKACTIVATE = &H80
Public Const LVS_EX_FLATSB = &H100 'cannot be cleared - Win32 & IE4 only
Public Const LVS_EX_REGIONAL = &H200 'Win32 & IE4 only
Public Const LVS_EX_INFOTIP = &H400 'listview does InfoTips for you -
Win32 & IE4 only
ListView Set Image List Messages (LVSIL_)
Public Const LVSIL_NORMAL = 0
Public Const LVSIL_SMALL = 1
Public Const LVSIL_STATE = 2
ListView Item Format Messages (LVIF_)
Public Const LVIF_TEXT = &H1
Public Const LVIF_IMAGE = &H2
Public Const LVIF_PARAM = &H4
Public Const LVIF_STATE = &H8
Public Const LVIF_INDENT = &H10 'IE 3+ only
Public Const LVIF_NORECOMPUTE = &H800 'IE 3+ only
Public Const LVIF_DI_SETITEM = &H1000
ListView Item State Messages (LVIS_)
Public Const LVIS_FOCUSED = &H1
Public Const LVIS_SELECTED = &H2
Public Const LVIS_CUT = &H4
Public Const LVIS_DROPHILITED = &H8
Public Const LVIS_OVERLAYMASK = &HF00
Public Const LVIS_STATEIMAGEMASK = &HF000
ListView Item Definitions (LV_ITEM) (Win95)
Public Const LV_ITEM = LV_ITEMA
Public Const LPLV_ITEM = LPLV_ITEMA
Public Const LV_ITEMA = LV_ITEMA 'IE 3+ only
Public Const tagLV_ITEMA = LV_ITEMA
ListView Item Definitions (LV_ITEM) (Unicode)
Public Const LV_ITEM = LV_ITEMW
Public Const LPLV_ITEM = LPLV_ITEMW 'Unicode (NT)
Public Const LV_ITEM = LV_ITEM 'IE 3+ only
Public Const tagLV_ITEMW = LV_ITEMW
ListView - Misc. Messages
'Public Const INDEXTOSTATEIMAGEMASK(i) ((i) << 12)
Public Const I_INDENTCALLBACK = (-1) 'IE 3+ only
Public Const LPSTR_TEXTCALLBACKW = ((LPWSTR) - 1&) 'Unicode (NT)
Public Const LPSTR_TEXTCALLBACKA = ((LPSTR) - 1&) 'win95
Public Const LPSTR_TEXTCALLBACK = LPSTR_TEXTCALLBACKW 'Unicode (NT)
Public Const LPSTR_TEXTCALLBACK = LPSTR_TEXTCALLBACKA 'win95
ListView Notification Item Messages (LVNI_)
Public Const LVNI_ALL = &H0
Public Const LVNI_FOCUSED = &H1
Public Const LVNI_SELECTED = &H2
Public Const LVNI_CUT = &H4
Public Const LVNI_DROPHILITED = &H8
Public Const LVNI_ABOVE = &H100
Public Const LVNI_BELOW = &H200
Public Const LVNI_TOLEFT = &H400
Public Const LVNI_TORIGHT = &H800
ListView Find Item Messages (LVFI_) (Generic)
Public Const LVFI_PARAM = &H1
Public Const LVFI_STRING = &H2
Public Const LVFI_PARTIAL = &H8
Public Const LVFI_WRAP = &H20
Public Const LVFI_NEARESTXY = &H40
Public Const LV_FINDINFO = LVFINDINFO
ListView Find Item Messages (LVFI_) (Win95)
Public Const LV_FINDINFOA = LVFINDINFOA
Public Const LV_FINDINFOA = LVFINDINFOA 'IE 3+ only
Public Const tagLVFINDINFOA = LV_FINDINFOA
Public Const LVFINDINFOA = LV_FINDINFOA
Public Const LVFINDINFO = LVFINDINFOA
ListView Find Item Messages (LVFI_) (Unicode)
Public Const LV_FINDINFOW = LVFINDINFOW
Public Const LV_FINDINFOW = LVFINDINFOW 'IE 3+ only
Public Const tagLVFINDINFOW = LV_FINDINFOW
Public Const LVFINDINFOW = LV_FINDINFOW
Public Const LVFINDINFO = LVFINDINFOW
ListView Find ItemRect Messages (LVIR_)
Public Const LVIR_BOUNDS = 0
Public Const LVIR_ICON = 1
Public Const LVIR_LABEL = 2
Public Const LVIR_SELECTBOUNDS = 3
ListView Hit Test Messages (LVHT_)
Public Const LVHT_NOWHERE = &H1
Public Const LVHT_ONITEMICON = &H2
Public Const LVHT_ONITEMLABEL = &H4
Public Const LVHT_ONITEMSTATEICON = &H8
Public Const LVHT_ONITEM = (LVHT_ONITEMICON Or _
LVHT_ONITEMLABEL Or _
LVHT_ONITEMSTATEICON)
Public Const LVHT_ABOVE = &H8
Public Const LVHT_BELOW = &H10
Public Const LVHT_TORIGHT = &H20
Public Const LVHT_TOLEFT = &H40
Public Const LV_HITTESTINFO = LVHITTESTINFO 'IE 3+ only
Public Const tagLVHITTESTINFO = LV_HITTESTINFO
Public Const LVHITTESTINFO = LV_HITTESTINFO
ListView Arrange Messages (LVA_)
Public Const LVA_DEFAULT = &H0
Public Const LVA_ALIGNLEFT = &H1
Public Const LVA_ALIGNTOP = &H2
Public Const LVA_SNAPTOGRID = &H5
ListView Column Messages (LVC_) (Generic)
Public Const LV_COLUMN = LVCOLUMN 'IE 3+ only
ListView Column Messages (LVC_) (Win95)
Public Const LV_COLUMNA = LVCOLUMNA 'IE 3+ only
Public Const tagLVCOLUMNA = _LV_COLUMNA
Public Const LVCOLUMNA = LV_COLUMNA
Public Const LVCOLUMN = LVCOLUMNA
Public Const LPLVCOLUMN = LPLVCOLUMNA
ListView Column Messages (LVC_) (Unicode)
Public Const LV_COLUMNW = LVCOLUMNW 'IE 3+ only
Public Const tagLVCOLUMNW = _LV_COLUMNW
Public Const LVCOLUMNW = LV_COLUMNW
Public Const LVCOLUMN = LVCOLUMNW
Public Const LPLVCOLUMN = LPLVCOLUMNW
ListView Column Flag Messages (LVCF_) (LVC.mask)
Public Const LVCF_FMT = &H1
Public Const LVCF_WIDTH = &H2
Public Const LVCF_TEXT = &H4
Public Const LVCF_SUBITEM = &H8
Public Const LVCF_IMAGE = &H10 'IE 3+ only
Public Const LVCF_ORDER = &H20 'IE 3+ only
ListView Column Format Messages (LVCFMT_) (LVC.fmt)
Public Const LVCFMT_LEFT = &H0
Public Const LVCFMT_RIGHT = &H1
Public Const LVCFMT_CENTER = &H2
Public Const LVCFMT_JUSTIFYMASK = &H3
Public Const LVCFMT_IMAGE = &H800 'IE 3+ only
Public Const LVCFMT_BITMAP_ON_RIGHT = &H1000 'IE 3+ only
Public Const LVCFMT_COL_HAS_IMAGES = &H8000& 'IE 4 only
ListView Set Column Width Messages (LVSCW_)
Public Const LVSCW_AUTOSIZE = -1
Public Const LVSCW_AUTOSIZE_USEHEADER = -2
ListView Background Image Flags (LVBKIF_)
Public Const LVBKIF_SOURCE_NONE = &H0 'Win32 and IE 4 only
Public Const LVBKIF_SOURCE_HBITMAP = &H1 'Win32 and IE 4 only
Public Const LVBKIF_SOURCE_URL = &H2 'Win32 and IE 4 only
Public Const LVBKIF_SOURCE_MASK = &H3 'Win32 and IE 4 only
Public Const LVBKIF_STYLE_NORMAL = &H0 'Win32 and IE 4 only
Public Const LVBKIF_STYLE_TILE = &H10 'Win32 and IE 4 only
Public Const LVBKIF_STYLE_MASK = &H10 'Win32 and IE 4 only
ListView Notification Messages (LVN_) (Generic)
Public Const LVN_ITEMCHANGING = (LVN_FIRST - 0)
Public Const LVN_ITEMCHANGED = (LVN_FIRST - 1)
Public Const LVN_INSERTITEM = (LVN_FIRST - 2)
Public Const LVN_DELETEITEM = (LVN_FIRST - 3)
Public Const LVN_DELETEALLITEMS = (LVN_FIRST - 4)
Public Const LVN_COLUMNCLICK = (LVN_FIRST - 8)
Public Const LVN_BEGINDRAG = (LVN_FIRST - 9)
Public Const LVN_BEGINRDRAG = (LVN_FIRST - 11)
Public Const LVN_ODCACHEHINT = (LVN_FIRST - 13) 'IE 3+ only
Public Const LVN_ITEMACTIVATE = (LVN_FIRST - 14)
Public Const LVN_ODSTATECHANGED = (LVN_FIRST - 15)
Public Const LVN_HOTTRACK = (LVN_FIRST - 21)
Public Const LVN_KEYDOWN = (LVN_FIRST - 55)
Public Const LVN_MARQUEEBEGIN = (LVN_FIRST - 56) 'IE 3+ only
ListView Notification Messages (LVN_) (Win95)
Public Const LVN_BEGINLABELEDITA = (LVN_FIRST - 5)
Public Const LVN_ENDLABELEDITA = (LVN_FIRST - 6)
Public Const LVN_GETDISPINFOA = (LVN_FIRST - 50)
Public Const LVN_SETDISPINFOA = (LVN_FIRST - 51)
Public Const LVN_ODFINDITEMA = (LVN_FIRST - 52) 'IE 3+ only
Public Const LVN_ODFINDITEM = LVN_ODFINDITEMA
Public Const LVN_BEGINLABELEDIT = LVN_BEGINLABELEDITA
Public Const LVN_ENDLABELEDIT = LVN_ENDLABELEDITA
Public Const LVN_GETDISPINFO = LVN_GETDISPINFOA
Public Const LVN_SETDISPINFO = LVN_SETDISPINFOA
Public Const LV_DISPINFOA = NMLVDISPINFOA 'IE 3+ only
Public Const tagLVDISPINFO = _LV_DISPINFO
Public Const NMLVDISPINFOA = LV_DISPINFOA
Public Const NMLVDISPINFO = NMLVDISPINFOA
ListView Notification Messages (LVN_) (Unicode)
Public Const LVN_BEGINLABELEDITW = (LVN_FIRST - 75)
Public Const LVN_ENDLABELEDITW = (LVN_FIRST - 76)
Public Const LVN_GETDISPINFOW = (LVN_FIRST - 77)
Public Const LVN_SETDISPINFOW = (LVN_FIRST - 78)
Public Const LVN_ODFINDITEMW = (LVN_FIRST - 79) 'IE 3+ only
Public Const LVN_ODFINDITEM = LVN_ODFINDITEMW
Public Const LVN_BEGINLABELEDIT = LVN_BEGINLABELEDITW
Public Const LVN_ENDLABELEDIT = LVN_ENDLABELEDITW
Public Const LVN_GETDISPINFO = LVN_GETDISPINFOW
Public Const LVN_SETDISPINFO = LVN_SETDISPINFOW
Public Const LV_DISPINFOW = NMLVDISPINFOW 'IE 3+ only
Public Const tagLVDISPINFOW = _LV_DISPINFOW
Public Const NMLVDISPINFOW = LV_DISPINFOW
Public Const NMLVDISPINFO = NMLVDISPINFOW
'--end block--'
Lvm_first &h1000
ListView Styles (Lvs_)
Public Const Lvs_icon = &h0
Public Const Lvs_report = &h1
Public Const Lvs_smallicon = &h2
Public Const lvs_list = &h3
Public Const Lvs_typemask = &h3
Public Const Lvs_singlesel = &h4
Public Const lvs_showselalways = &h8
Public Const lvs_sortascending = &h10
Public Const lvs_sortdescending = &h20
Public Const lvs_shareimagelists = &h40
Public Const Lvs_nolabelwrap = &h80
Public Const Lvs_autoarrange = &h100
Public Const lvs_editlabels = &h200
Public Const lvs_ownerdata = &h1000 ' IE 3+
Public Const Lvs_noscroll = &h2000
Public Const Lvs_typestylemask = &hfc00
Public Const lvs_aligntop = &h0
Public Const Lvs_alignleft = &h800
Public Const Lvs_alignmask = &hc00
Public Const lvs_ownerdrawfixed = &h400
Public Const Lvs_nocolumnheader = &h4000
Public Const Lvs_nosortheader = &H8000&