List-View Messages

List-View Messages

The following table shows all the window messages that seem ever to have been defined specifically for List-View controls. For each message, a quick attempt has been made to determine the range of applicable COMCTL32 versions.

The description of the early history is complicated by the separate treatment of builds for Windows and NT. Some messages that date from a version 4.00 supplied with Internet Explorer 3.00 for Windows NT are not found in the version 4.00 from the original Windows 95, but become common to both Windows and NT builds of version 4.70 and higher. Builds of COMCTL32 for Windows, as opposed to NT, were for many years not just natively ANSI but exclusively ANSI, so that many messages have both ANSI and Unicode forms as early as version 3.51 for NT but do not have Unicode forms in the Windows builds until version 5.80.

More than a handful of messages, especially among recent additions, are highlighted. These are not documented in the January 2007 edition of the Software Development Kit (SDK) for Windows Vista, nor are they defined in the COMMCTRL.H header from that SDK. The names given here for these messages are invented, Microsoft’s names being not known.

Message Symbolic Name Applicable Versions Remarks
0x1000LVM_GETBKCOLOR3.50 and higherreturns indirect result of GetBackgroundColor method
0x1001LVM_SETBKCOLOR3.50 and higherpasses lParam to SetBackgroundColor method; 
returns TRUE for success, else FALSE
0x1002LVM_GETIMAGELIST3.50 and higher 
0x1003LVM_SETIMAGELIST3.50 and higher 
0x1004LVM_GETITEMCOUNT3.50 and higherreturns indirect result of GetItemCount method
0x1005LVM_GETITEMA3.50 and higher 
0x1006LVM_SETITEMA3.50 and higher 
0x1007LVM_INSERTITEMA3.50 and higher 
0x1008LVM_DELETEITEM3.50 and higherpasses wParam to DeleteItem method; 
returns TRUE for success, else FALSE
0x1009LVM_DELETEALLITEMS3.50 and highercalls DeleteAllItems method; 
returns TRUE for success, else FALSE
0x100ALVM_GETCALLBACKMASK3.50 and higherreturns indirect result of GetCallbackMask method
0x100BLVM_SETCALLBACKMASK3.50 and higherpasses wParam to SetCallbackMask method; 
returns TRUE
0x100CLVM_GETNEXTITEM3.50 and highertranslates to GetNextItem method
0x100DLVM_FINDITEMA3.50 and higher 
0x100ELVM_GETITEMRECT3.50 and highertranslates to GetItemRect method
0x100FLVM_SETITEMPOSITION3.50 and higher 
0x1010LVM_GETITEMPOSITION3.50 and higher 
0x1011LVM_GETSTRINGWIDTHA3.50 and higher 
0x1012LVM_HITTEST3.50 and higher 
0x1013LVM_ENSUREVISIBLE3.50 and highertranslates to EnsureItemVisible method
0x1014LVM_SCROLL3.50 and higherpasses wParam and lParam to ScrollView method; 
returns TRUE for success, else FALSE
0x1015LVM_REDRAWITEMS3.50 and higherpasses wParam and lParam to RedrawItems method; 
returns TRUE for success, else FALSE
0x1016LVM_ARRANGE3.50 and higherpasses wParam to ArrangeItems method; 
returns TRUE for success, else FALSE
0x1017LVM_EDITLABELA3.50 and higher 
0x1018LVM_GETEDITCONTROL3.50 and higherreturns indirect result of GetEditControl method
0x1019LVM_GETCOLUMNA3.50 and higher 
0x101ALVM_SETCOLUMNA3.50 and higher 
0x101BLVM_INSERTCOLUMNA3.50 and higher 
0x101CLVM_DELETECOLUMN3.50 and higherpasses wParam to DeleteColumn method; 
returns TRUE for success, else FALSE
0x101DLVM_GETCOLUMNWIDTH3.50 and higher 
0x101ELVM_SETCOLUMNWIDTH3.50 and higherpasses wParam and lParam (sign-extended from 16 bits) to SetColumnWidth method; 
returns TRUE for success, else FALSE
0x101FLVM_GETHEADER4.70 and higher 
0x1021LVM_CREATEDRAGIMAGE3.50 and higherpasses wParam and lParam to CreateDragImage method; 
returns indirect result
0x1022LVM_GETVIEWRECT3.50 and higherpasses lParam to GetViewRect method; 
returns TRUE for success, else FALSE
0x1023LVM_GETTEXTCOLOR3.50 and higherreturns indirect result of GetTextColor method
0x1024LVM_SETTEXTCOLOR3.50 and higherpasses lParam to SetTextColor method
0x1025LVM_GETTEXTBKCOLOR3.50 and higherreturns indirect result of GetTextBackgroundColor method
0x1026LVM_SETTEXTBKCOLOR3.50 and higherpasses lParam to SetTextBackgroundColor method; 
returns TRUE
0x1027LVM_GETTOPINDEX3.50 and higherreturns indirect result of GetTopIndex method
0x1028LVM_GETCOUNTPERPAGE3.50 and higherreturns indirect result of GetCountPerPage method
0x1029LVM_GETORIGIN3.50 and higherpasses lParam to GetOrigin method; 
returns TRUE for success, else FALSE
0x102ALVM_UPDATE3.50 and higherpasses wParam to UpdateItem method; 
returns TRUE
0x102BLVM_SETITEMSTATE3.50 and highertranslates to SetItemState method
0x102CLVM_GETITEMSTATE3.50 and highertranslates to GetItemState method
0x102DLVM_GETITEMTEXTA3.50 and higher 
0x102ELVM_SETITEMTEXTA3.50 and higher 
0x102FLVM_SETITEMCOUNT3.50 and higherpasses wParam and lParam to SetItemCount method; 
returns TRUE for success, else FALSE
0x1030LVM_SORTITEMS3.50 and higherpasses FALSE, wParam and lParam to SortItems method; 
returns TRUE for success, else FALSE
0x1031LVM_SETITEMPOSITION323.50 and higherpasses wParam and lParam to SetItemPosition method; 
returns TRUE for success, else FALSE; 
fails trivially if lParam is NULL
0x1032LVM_GETSELECTEDCOUNT3.50 and higherreturns indirect result of GetSelectedCount method
0x1033LVM_GETITEMSPACING3.50 and higherpasses wParam to GetItemSpacing method; 
returns indirect results composed into one DWORD
0x1034LVM_GETISEARCHSTRINGA3.50 and higher 
0x1035LVM_SETICONSPACING4.00 (NT) and higherpasses 16-bit components of lParam to SetIconSpacing method; 
returns indirect results composed into one DWORD
0x1036LVM_SETEXTENDEDLISTVIEWSTYLE4.00 (NT) and higherpasses wParam and lParam to SetExtendedStyle method; 
returns indirect result
0x1037LVM_GETEXTENDEDLISTVIEWSTYLE4.00 (NT) and higherreturns indirect result of GetExtendedStyle method
0x1038LVM_GETSUBITEMRECT4.00 (NT) and highertranslates to GetSubItemRect method
0x1039LVM_SUBITEMHITTEST4.00 (NT) and higher 
0x103ALVM_SETCOLUMNORDERARRAY4.00 (NT) and higherpasses wParam and lParam to SetColumnOrderArray method; 
returns TRUE for success, else FALSE
0x103BLVM_GETCOLUMNORDERARRAY4.00 (NT) and higherpasses wParam and lParam to GetColumnOrderArray method; 
returns TRUE for success, else FALSE
0x103CLVM_SETHOTITEM4.70 and highertranslates to SetHotItem method
0x103DLVM_GETHOTITEM4.70 and higherreturns iItem member from indirect result of GetHotItem method
0x103ELVM_SETHOTCURSOR4.70 and higherpasses lParam to SetHotCursor method; 
returns indirect result
0x103FLVM_GETHOTCURSOR4.70 and higherreturns indirect result of GetHotCursor method
0x1040LVM_APPROXIMATEVIEWRECT4.70 and highertranslates to ApproximateViewRect method
0x1041LVM_SETWORKAREAS4.70 and higherpasses wParam and lParam to SetWorkAreas method; 
returns zero
0x1042LVM_GETSELECTIONMARK4.71 and higherreturns iItem member from indirect result of GetSelectionMark method
0x1043LVM_SETSELECTIONMARK4.71 and highertranslates to SetSelectionMark method
0x1044LVM_SETBKIMAGEA4.71 and higher 
0x1045LVM_GETBKIMAGEA4.71 and higher 
0x1046LVM_GETWORKAREAS4.71 and higherpasses wParam and lParam to GetWorkAreas method; 
returns zero
0x1047LVM_SETHOVERTIME4.71 and higherpasses lParam to SetHoverTime method; 
returns indirect result
0x1048LVM_GETHOVERTIME4.71 and higherreturns indirect result of GetHoverTime method
0x1049LVM_GETNUMBEROFWORKAREAS4.71 and higherpasses lParam to GetWorkAreaCount method; 
returns zero
0x104ALVM_SETTOOLTIPS4.71 and higherpasses wParam to SetToolTip method; 
returns indirect result
0x104BLVM_GETITEMW3.51 and higher (NT); 
5.80 and higher (Windows)
passes lParam to GetItem method; 
returns TRUE for success, else FALSE
0x104CLVM_SETITEMW3.51 and higher (NT); 
5.80 and higher (Windows)
passes lParam to SetItem method; 
returns TRUE for success, else FALSE
0x104DLVM_INSERTITEMW3.51 and higher (NT); 
5.80 and higher (Windows)
passes lParam to InsertItem method; 
returns indirect result
0x104ELVM_GETTOOLTIPS4.71 and higherreturns indirect result of GetToolTip method
0x104FLVM_GETHOTLIGHTCOLOR4.71 and higherreturns indirect result of GetHotLightColor method
0x1050LVM_SETHOTLIGHTCOLOR4.71 and higherpasses lParam to SetHotLightColor method; 
returns TRUE
0x1051LVM_SORTITEMSEX5.80 and higherpasses TRUE, wParam and lParam to SortItems method; 
returns TRUE for success, else FALSE
0x1052LVM_SETRANGEOBJECT5.80 and higherpasses wParam and lParam to SetRangeObject method; 
returns TRUE for success, else FALSE
0x1053LVM_FINDITEMW3.51 and higher (NT); 
5.80 and higher (Windows)
translates to FindItem method
0x1054LVM_RESETEMPTYTEXT5.80 and highercalls ResetEmptyText method; 
returns TRUE
0x1055LVM_SETFROZENITEM6.00 and higherpasses wParam and lParam to SetFrozenItem method; 
returns TRUE for success, else FALSE
0x1056LVM_GETFROZENITEM6.00 and higherreturns indirect result of GetFrozenItem method
0x1057LVM_GETSTRINGWIDTHW3.51 and higher (NT); 
5.80 and higher (Windows)
passes lParam to GetStringWidth method; 
returns indirect result
0x1058LVM_SETFROZENSLOT6.00 and higherpasses wParam and lParam to SetFrozenSlot method; 
returns TRUE for success, else FALSE
0x1059LVM_GETFROZENSLOT6.00 and higherpasses lParam to GetFrozenSlot method; 
returns TRUE for success, else FALSE
0x105ALVM_SETVIEWMARGIN6.00 and higherpasses lParam to SetViewMargin method; 
returns TRUE for success, else FALSE
0x105BLVM_GETVIEWMARGIN6.00 and higherpasses lParam to GetViewMargin method; 
returns TRUE for success, else FALSE
0x105CLVM_GETGROUPSTATE6.10 and higherpasses wParam and lParam to GetGroupState method; 
returns indirect result
0x105DLVM_GETFOCUSEDGROUP6.10 and higherreturns indirect result of GetFocusedGroup method
0x105ELVM_EDITGROUPLABEL6.10 and higherpasses wParam to EditGroupLabel method; 
returns TRUE for success, else FALSE
0x105FLVM_GETCOLUMNW3.51 and higher (NT); 
5.80 and higher (Windows)
passes wParam and lParam to GetColumn method; 
returns TRUE for success, else FALSE
0x1060LVM_SETCOLUMNW3.51 and higher (NT); 
5.80 and higher (Windows)
passes wParam and lParam to SetColumn method; 
returns TRUE for success, else FALSE
0x1061LVM_INSERTCOLUMNW3.51 and higher (NT); 
5.80 and higher (Windows)
passes wParam and lParam to InsertColumn method; 
returns indirect result
0x1062LVM_GETGROUPRECT6.10 and highertranslates to GetGroupRect method
0x1073LVM_GETITEMTEXTW3.51 and higher (NT); 
5.80 and higher (Windows)
 
0x1074LVM_SETITEMTEXTW3.51 and higher (NT); 
5.80 and higher (Windows)
translates to SetItemText method
0x1075LVM_GETISEARCHSTRINGW3.51 and higher (NT); 
5.80 and higher (Windows)
 
0x1076LVM_EDITLABELW3.51 and higher (NT); 
5.80 and higher (Windows)
 
0x108ALVM_SETBKIMAGEW4.71 and higher (NT) ; 
5.80 and higher (Windows)
passes lParam to SetBackgroundImage method; 
returns TRUE for success, else FALSE
0x108BLVM_GETBKIMAGEW4.71 and higher (NT) ; 
5.80 and higher (Windows)
passes lParam to GetBackgroundImage method; 
returns TRUE for success, else FALSE
0x108CLVM_SETSELECTEDCOLUMN6.00 and higherpasses wParam to SetSelectedColumn method; 
returns TRUE for success, else FALSE
0x108ELVM_SETVIEW6.00 and higherpasses wParam (zero-extended from 16 bits) to SetView method; 
returns 1 for success, else -1
0x108FLVM_GETVIEW6.00 and higherreturns indirect result of GetView method
0x1091LVM_INSERTGROUP6.00 and higherpasses wParam and lParam to InsertGroup method; 
returns indirect result
0x1093LVM_SETGROUPINFO6.00 and higher 
0x1095LVM_GETGROUPINFO6.00 and higher 
0x1096LVM_REMOVEGROUP6.00 and higher 
0x1098LVM_GETGROUPCOUNT6.10 and higherreturns indirect result of GetGroupCount method
0x1099LVM_GETGROUPINFOBYINDEX6.10 and higher 
0x109BLVM_SETGROUPMETRICS6.00 and higherpasses lParam to SetGroupMetrics method; 
return TRUE
0x109CLVM_GETGROUPMETRICS6.00 and higherpasses lParam to GetGroupMetrics method; 
return TRUE
0x109DLVM_ENABLEGROUPVIEW6.00 and higher 
0x109ELVM_SORTGROUPS6.00 and higherpasses wParam and lParam to SortGroups method; 
returns TRUE for success, else FALSE
0x109FLVM_INSERTGROUPSORTED6.00 and higherpasses wParam to InsertGroupSorted method; 
returns indirect result
0x10A0LVM_REMOVEALLGROUPS6.00 and higher 
0x10A1LVM_HASGROUP6.00 and higherpasses wParam to HasGroup method; 
returns indirect result
0x10A2LVM_SETTILEVIEWINFO6.00 and higherpasses lParam to SetTileViewInfo method; 
returns TRUE for success, else FALSE
0x10A3LVM_GETTILEVIEWINFO6.00 and higherpasses lParam to GetTileViewInfo method; 
returns TRUE for success, else FALSE
0x10A4LVM_SETTILEINFO6.00 and higherpasses lParam to SetTileInfo method; 
returns TRUE for success, else FALSE
0x10A5LVM_GETTILEINFO6.00 and higherpasses lParam to GetTileInfo method; 
returns TRUE for success, else FALSE
0x10A6LVM_SETINSERTMARK6.00 and higherpasses lParam to SetInsertMark method; 
returns TRUE for success, else FALSE
0x10A7LVM_GETINSERTMARK6.00 and higherpasses lParam to GetInsertMark method; 
returns TRUE for success, else FALSE
0x10A8LVM_INSERTMARKHITTEST6.00 and higherpasses wParam and lParam to HitTestInsertMark method; 
returns TRUE for success, else FALSE; 
fails trivially if wParam or lParam is NULL
0x10A9LVM_GETINSERTMARKRECT6.00 and higherpasses lParam to GetInsertMarkRect method; 
returns TRUE for success, else FALSE
0x10AALVM_SETINSERTMARKCOLOR6.00 and higherpasses lParam to SetInsertMarkColor method; 
returns indirect result
0x10ABLVM_GETINSERTMARKCOLOR6.00 and higherreturns indirect result of GetInsertMarkColor method
0x10ADLVM_SETINFOTIP6.00 and higherpasses lParam to SetInfoTip method; 
returns TRUE for success, else FALSE
0x10AELVM_GETSELECTEDCOLUMN6.00 and higherreturns indirect result of GetSelectedColumn method
0x10AFLVM_ISGROUPVIEWENABLED6.00 and higherreturns indirect result of IsGroupViewEnabled method
0x10B0LVM_GETOUTLINECOLOR6.00 and higherreturns indirect result of GetOutlineColor method
0x10B1LVM_SETOUTLINECOLOR6.00 and higherpasses lParam to SetOutlineColor method; 
returns indirect result
0x10B2LVM_SETKEYBOARDSELECTED6.00 and highertranslates to SetKeyboardSelected method
0x10B3LVM_CANCELEDITLABEL6.00 and highercalls CancelEditLabel method; 
returns TRUE
0x10B4LVM_MAPINDEXTOID6.00 and higherpasses wParam to MapIndexToId method; 
returns indirect result
0x10B5LVM_MAPIDTOINDEX6.00 and higherpasses wParam to MapIdToIndex method; 
returns indirect result
0x10B6LVM_ISITEMVISIBLE6.00 and highertranslates to IsItemVisible method
0x10B7LVM_EDITSUBITEM6.10 and highertranslates to EditSubItem method
0x10B8LVM_ENSURESUBITEMVISIBLE6.10 and highertranslates to EnsureSubItemVisible method
0x10B9LVM_GETCLIENTRECT6.10 and higherpasses FALSE and lParam to GetClientRect method; 
returns TRUE
0x10BALVM_GETFOCUSEDCOLUMN6.10 and higherreturns indirect result of GetFocusedColumn method
0x10BBLVM_SETOWNERDATACALLBACK6.10 and higherpasses wParam to SetOwnerDataCallback method; 
returns TRUE
0x10BCLVM_RECOMPUTEITEMS6.10 and higherpasses lParam to RecomputeItems method; 
returns TRUE
0x10BDLVM_QUERYINTERFACE6.10 and higherpasses wParam and lParam to QueryInterface method; 
returns TRUE for success, else FALSE
0x10BELVM_SETGROUPSUBSETCOUNT6.10 and higherpasses lParam to SetGroupSubsetCount method; 
returns TRUE for success, else FALSE; 
fails trivially if wParam is non-zero
0x10BFLVM_GETGROUPSUBSETCOUNT6.10 and higherreturns indirect result of GetGroupSubsetCount method; 
returns zero trivially if wParam or lParam is non-zero
0x10C0LVM_ORDERTOINDEX6.10 and higher 
0x10C1LVM_GETACCVERSION6.10 and higher 
0x10C2LVM_MAPACCIDTOACCINDEX6.10 and higher 
0x10C3LVM_MAPACCINDEXTOACCID6.10 and higher 
0x10C4LVM_GETOBJECTCOUNT6.10 and higher 
0x10C5LVM_GETOBJECTRECT6.10 and higher 
0x10C6LVM_ACCHITTEST6.10 and higher 
0x10C7LVM_GETFOCUSEDOBJECT6.10 and higher 
0x10C8LVM_GETOBJECTROLE6.10 and higher 
0x10C9LVM_GETOBJECTSTATE6.10 and higher 
0x10CALVM_ACCNAVIGATE6.10 and higher 
0x10CBLVM_INVOKEDEFAULTACTION6.10 and higher 
0x10CCLVM_GETEMPTYTEXT6.10 and higher 
0x10CDLVM_GETFOOTERRECT6.10 and higher 
0x10CELVM_GETFOOTERINFO6.10 and higher 
0x10CFLVM_GETFOOTERITEMRECT6.10 and higher 
0x10D0LVM_GETFOOTERITEM6.10 and higher 
0x10D1LVM_GETITEMINDEXRECT6.10 and highertranslates to GetSubItemRect method
0x10D2LVM_SETITEMINDEXSTATE6.10 and highertranslates to SetItemState method
0x10D3LVM_GETNEXTITEMINDEX6.10 and highertranslates to GetNextItem method
0x10D4LVM_SETPRESERVEALPHA6.10 and higher 



备注:本文转载自:http://www.geoffchappell.com/studies/windows/shell/comctl32/controls/listview/messages/index.htm


  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值