listview控件消息大全.docx
《listview控件消息大全.docx》由会员分享,可在线阅读,更多相关《listview控件消息大全.docx(12页珍藏版)》请在冰豆网上搜索。
listview控件消息大全
以下消息分WIN95/NT:
(WIN95/Unicode)
(Win95)
PublicConstWC_LISTVIEWA="SysListView32"
PublicConstWC_LISTVIEW=WC_LISTVIEWA
(Unicode)
PublicConstWC_LISTVIEWW="SysListView32"
PublicConstWC_LISTVIEW=WC_LISTVIEWW
(Other-notWin32)
PublicConstWC_LISTVIEW"SysListView"
LVM_FIRST&H1000
ListViewStyles(LVS_)
PublicConstLVS_ICON=&H0
PublicConstLVS_REPORT=&H1
PublicConstLVS_SMALLICON=&H2
PublicConstLVS_LIST=&H3
PublicConstLVS_TYPEMASK=&H3
PublicConstLVS_SINGLESEL=&H4
PublicConstLVS_SHOWSELALWAYS=&H8
PublicConstLVS_SORTASCENDING=&H10
PublicConstLVS_SORTDESCENDING=&H20
PublicConstLVS_SHAREIMAGELISTS=&H40
PublicConstLVS_NOLABELWRAP=&H80
PublicConstLVS_AUTOARRANGE=&H100
PublicConstLVS_EDITLABELS=&H200
PublicConstLVS_OWNERDATA=&H1000'IE3+only
PublicConstLVS_NOSCROLL=&H2000
PublicConstLVS_TYPESTYLEMASK=&HFC00
PublicConstLVS_ALIGNTOP=&H0
PublicConstLVS_ALIGNLEFT=&H800
PublicConstLVS_ALIGNMASK=&HC00
PublicConstLVS_OWNERDRAWFIXED=&H400
PublicConstLVS_NOCOLUMNHEADER=&H4000
PublicConstLVS_NOSORTHEADER=&H8000&
ListViewMessages(LVM_)(Generic)
PublicConstLVM_GETBKCOLOR=(LVM_FIRST+0)
PublicConstLVM_SETBKCOLOR=(LVM_FIRST+1)
PublicConstLVM_GETIMAGELIST=(LVM_FIRST+2)
PublicConstLVM_SETIMAGELIST=(LVM_FIRST+3)
PublicConstLVM_GETITEMCOUNT=(LVM_FIRST+4)
PublicConstLVM_DELETEITEM=(LVM_FIRST+8)
PublicConstLVM_DELETEALLITEMS=(LVM_FIRST+9)
PublicConstLVM_GETCALLBACKMASK=(LVM_FIRST+10)
PublicConstLVM_SETCALLBACKMASK=(LVM_FIRST+11)
PublicConstLVM_GETNEXTITEM=(LVM_FIRST+12)
PublicConstLVM_SETITEMPOSITION=(LVM_FIRST+15)
PublicConstLVM_GETITEMPOSITION=(LVM_FIRST+16)
PublicConstLVM_HITTEST=(LVM_FIRST+18)
PublicConstLVM_ENSUREVISIBLE=(LVM_FIRST+19)
PublicConstLVM_SCROLL=(LVM_FIRST+20)
PublicConstLVM_REDRAWITEMS=(LVM_FIRST+21)
PublicConstLVM_ARRANGE=(LVM_FIRST+22)
PublicConstLVM_GETEDITCONTROL=(LVM_FIRST+24)
PublicConstLVM_DELETECOLUMN=(LVM_FIRST+28)
PublicConstLVM_GETCOLUMNWIDTH=(LVM_FIRST+29)
PublicConstLVM_SETCOLUMNWIDTH=(LVM_FIRST+30)
PublicConstLVM_GETHEADER=(LVM_FIRST+31)'IE3+only
PublicConstLVM_CREATEDRAGIMAGE=(LVM_FIRST+33)
PublicConstLVM_GETVIEWRECT=(LVM_FIRST+34)
PublicConstLVM_GETTEXTCOLOR=(LVM_FIRST+35)
PublicConstLVM_SETTEXTCOLOR=(LVM_FIRST+36)
PublicConstLVM_GETTEXTBKCOLOR=(LVM_FIRST+37)
PublicConstLVM_SETTEXTBKCOLOR=(LVM_FIRST+38)
PublicConstLVM_GETTOPINDEX=(LVM_FIRST+39)
PublicConstLVM_GETCOUNTPERPAGE=(LVM_FIRST+40)
PublicConstLVM_GETORIGIN=(LVM_FIRST+41)
PublicConstLVM_UPDATE=(LVM_FIRST+42)
PublicConstLVM_SETITEMSTATE=(LVM_FIRST+43)
PublicConstLVM_GETITEMSTATE=(LVM_FIRST+44)
PublicConstLVM_SETITEMCOUNT=(LVM_FIRST+47)
PublicConstLVM_SORTITEMS=(LVM_FIRST+48)
PublicConstLVM_SETITEMPOSITION32=(LVM_FIRST+49)
PublicConstLVM_GETSELECTEDCOUNT=(LVM_FIRST+50)
PublicConstLVM_GETITEMSPACING=(LVM_FIRST+51)
PublicConstLVM_SETICONSPACING=(LVM_FIRST+53)'IE3+only
PublicConstLVM_GETSUBITEMRECT=(LVM_FIRST+56)
PublicConstLVM_SUBITEMHITTEST=(LVM_FIRST+57)
PublicConstLVM_SETCOLUMNORDERARRAY=(LVM_FIRST+58)
PublicConstLVM_GETCOLUMNORDERARRAY=(LVM_FIRST+59)
PublicConstLVM_SETHOTITEM=(LVM_FIRST+60)
PublicConstLVM_GETHOTITEM=(LVM_FIRST+61)
PublicConstLVM_SETHOTCURSOR=(LVM_FIRST+62)
PublicConstLVM_GETHOTCURSOR=(LVM_FIRST+63)
PublicConstLVM_APPROXIMATEVIEWRECT=(LVM_FIRST+64)
PublicConstLVM_SETWORKAREA=(LVM_FIRST+65)
PublicConstLVM_GETSELECTIONMARK=(LVM_FIRST+66)'Win32andIE4only
PublicConstLVM_SETSELECTIONMARK=(LVM_FIRST+67)'Win32andIE4only
PublicConstLVM_GETWORKAREA=(LVM_FIRST+70)'Win32andIE4only
PublicConstLVM_SETHOVERTIME=(LVM_FIRST+71) 'Win32andIE4only
PublicConstLVM_GETHOVERTIME=(LVM_FIRST+72) 'Win32andIE4only
ListViewMessages(LVM_)(Win95)
PublicConstLVM_GETITEM=(LVM_FIRST+5)
PublicConstLVM_SETITEM=(LVM_FIRST+6)
PublicConstLVM_INSERTITEMA=(LVM_FIRST+7)
PublicConstLVM_INSERTITEM=LVM_INSERTITEMA
PublicConstLVM_FINDITEMA=(LVM_FIRST+13)
PublicConstLVM_FINDITEM=LVM_FINDITEMA
PublicConstLVM_GETSTRINGWIDTHA=(LVM_FIRST+17)
PublicConstLVM_GETSTRINGWIDTH=LVM_GETSTRINGWIDTHA
PublicConstLVM_EDITLABELA=(LVM_FIRST+23)
PublicConstLVM_EDITLABEL=LVM_EDITLABELA
PublicConstLVM_GETCOLUMNA=(LVM_FIRST+25)
PublicConstLVM_GETCOLUMN=LVM_GETCOLUMNA
PublicConstLVM_SETCOLUMNA=(LVM_FIRST+26)
PublicConstLVM_SETCOLUMN=LVM_SETCOLUMNA
PublicConstLVM_INSERTCOLUMNA=(LVM_FIRST+27)
PublicConstLVM_INSERTCOLUMN=LVM_INSERTCOLUMNA
PublicConstLVM_GETITEMTEXTA=(LVM_FIRST+45)
PublicConstLVM_GETITEMTEXT=LVM_GETITEMTEXTA
PublicConstLVM_SETITEMTEXTA=(LVM_FIRST+46)
PublicConstLVM_SETITEMTEXT=LVM_SETITEMTEXTA
PublicConstLVM_GETISEARCHSTRINGA=(LVM_FIRST+52)
PublicConstLVM_GETISEARCHSTRING=LVM_GETISEARCHSTRINGA
PublicConstLVM_SETBKIMAGEA=(LVM_FIRST+68)'Win32andIE4only
PublicConstLVM_GETBKIMAGEA=(LVM_FIRST+69)'Win32andIE4only
PublicConstLVBKIMAGE=LVBKIMAGEA'Win32andIE4only
PublicConstLPLVBKIMAGE=LPLVBKIMAGEA 'Win32andIE4only
PublicConstLVM_SETBKIMAGE=LVM_SETBKIMAGEA 'Win32andIE4only
PublicConstLVM_GETBKIMAGE=LVM_GETBKIMAGEA 'Win32andIE4only
ListViewMessages(LVM_)(Unicode)
PublicConstLVM_GETITEM=(LVM_FIRST+75)
PublicConstLVM_SETITEM=(LVM_FIRST+76)
PublicConstLVM_INSERTITEMW=(LVM_FIRST+77)
PublicConstLVM_INSERTITEM=LVM_INSERTITEMW
PublicConstLVM_FINDITEMW=(LVM_FIRST+83)
PublicConstLVM_FINDITEM=LVM_FINDITEMW
PublicConstLVM_GETSTRINGWIDTHW=(LVM_FIRST+87)
PublicConstLVM_GETSTRINGWIDTH=LVM_GETSTRINGWIDTHW
PublicConstLVM_EDITLABELW=(LVM_FIRST+118)
PublicConstLVM_EDITLABEL=LVM_EDITLABELW
PublicConstLVM_GETCOLUMNW=(LVM_FIRST+95)
PublicConstLVM_GETCOLUMN=LVM_GETCOLUMNW
PublicConstLVM_SETCOLUMNW=(LVM_FIRST+96)
PublicConstLVM_SETCOLUMN=LVM_SETCOLUMNW
PublicConstLVM_INSERTCOLUMNW=(LVM_FIRST+97)
PublicConstLVM_INSERTCOLUMN=LVM_INSERTCOLUMNW
PublicConstLVM_GETITEMTEXTW=(LVM_FIRST+115)
PublicConstLVM_GETITEMTEXT=LVM_GETITEMTEXTW
PublicConstLVM_SETITEMTEXTW=(LVM_FIRST+116)
PublicConstLVM_SETITEMTEXT=LVM_SETITEMTEXTW
PublicConstLVM_GETISEARCHSTRINGW=(LVM_FIRST+117)
PublicConstLVM_GETISEARCHSTRING=LVM_GETISEARCHSTRINGW
PublicConstLVM_GETBKIMAGEW=(LVM_FIRST+139)'Win32andIE4only
PublicConstLVM_SETBKIMAGEW=(LVM_FIRST+138)'Win32andIE4only
PublicConstLVBKIMAGE=LVBKIMAGEW'Win32andIE4only
PublicConstLPLVBKIMAGE=LPLVBKIMAGEW 'Win32andIE4only
PublicConstLVM_SETBKIMAGE=LVM_SETBKIMAGEW'Win32andIE4only
PublicConstLVM_GETBKIMAGE=LVM_GETBKIMAGEW'Win32andIE4only
ListViewExtendedStyleMessages(LVS_EX_)(Win95)
PublicConstLVS_EX_GRIDLINES=&H1
PublicConstLVS_EX_SUBITEMIMAGES=&H2
PublicConstLVS_EX_CHECKBOXES=&H4
PublicConstLVS_EX_TRACKSELECT=&H8
PublicConstLVS_EX_HEADERDRAGDROP=&H10
PublicConstLVS_EX_FULLROWSELECT=&H20 'appliestoreportmodeonly
PublicConstLVS_EX_ONECLICKACTIVATE=&H40
PublicConstLVS_EX_TWOCLICKACTIVATE=&H80
PublicConstLVS_EX_FLATSB=&H100 'cannotbecleared-Win32&IE4only
PublicConstLVS_EX_REGIONAL=&H200'Win32&IE4only
PublicConstLVS_EX_INFOTIP=&H400'listviewdoesInfoTipsforyou-
Win32&IE4only
ListViewSetImageListMessages(LVSIL_)
PublicConstLVSIL_NORMAL=0
PublicConstLVSIL_SMALL=1
PublicConstLVSIL_STATE=2
ListViewItemFormatMessages(LVIF_)
PublicConstLVIF_TEXT=&H1
PublicConstLVIF_IMAGE=&H2
PublicConstLVIF_PARAM=&H4
PublicConstLVIF_STATE=&H8
PublicConstLVIF_INDENT=&H10 'IE3+only
PublicConstLVIF_NORECOMPUTE=&H800 'IE3+only
PublicConstLVIF_DI_SETITEM=&H1000
ListViewItemStateMessages(LVIS_)
PublicConstLVIS_FOCUSED=&H1
PublicConstLVIS_SELECTED=&H2
PublicConstLVIS_CUT=&H4
PublicConstLVIS_DROPHILITED=&H8
PublicConstLVIS_OVERLAYMASK=&HF00
PublicConstLVIS_STATEIMAGEMASK=&HF000
ListViewItemDefinitions(LV_ITEM)(Win95)
PublicConstLV_ITEM=LV_ITEMA
PublicConstLPLV_ITEM=LPLV_ITEMA
PublicConstLV_ITEMA=LV_ITEMA 'IE3+only
PublicConsttagLV_ITEMA=LV_ITEMA
ListViewItemDefinitions(LV_ITEM)(Unicode)
PublicConstLV_ITEM=LV_ITEMW
PublicConstLPLV_ITEM=LPLV_ITEMW'Unicode(NT)
PublicConstLV_ITEM=LV_ITEM'IE3+only
PublicConsttagLV_ITEMW=LV_ITEMW
ListView-Misc.Messages
'PublicConstINDEXTOSTATEIMAGEMASK(i)((i)<<12)
PublicConstI_INDENTCALLBACK=(-1) 'IE3+only
PublicConstLPSTR_TEXTCALLBACKW=((LPWSTR)-1&)'Unicode(NT)
PublicConstLPSTR_TEXTCALLBACKA=((LPSTR)-1&)'win95
PublicConstLPSTR_TEXTCALLBACK=LPSTR_TEXTCALLBACKW 'Unicode(NT)
PublicConstLPSTR_TEXTCALLBACK=LPSTR_TEXTCALLBACKA 'win95
ListViewNotificationItemMessages(LVNI_)
PublicConstLVNI_ALL=&H0
PublicConstLVNI_FOCUSED=&H1
PublicConstLVNI_SELECTED=&H2
PublicConstLVNI_CUT=&H4
PublicConstLVNI_DROPHILITED=&H8
PublicConstLVNI_ABOVE=&H100
PublicConstLVNI_BELOW=&H200
PublicConstLVNI_TOLEFT=&H400
PublicConstLVNI_TORIGHT=&H800
ListViewFindItemMessages(LVFI_)(Generic)
PublicConstLVFI_PARAM=&H1
PublicConstLVFI_STRING=&H2
PublicConstLVFI_PARTIAL=&H8
PublicConstLVFI_WRAP=&H20
PublicConstLVFI_NEARESTXY=&H40
PublicConstLV_FINDINFO=LVFINDINFO
ListViewFindItemMessages(LVFI_)(Win95)
PublicConstLV_FINDINFOA=LVFINDINFOA
PublicConstLV_FINDINFOA=LVFINDINFOA 'IE3+only
PublicConsttagLVFIN