<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; AHK: ListView пара вопросов]]></title>
	<link rel="self" href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=8483&amp;type=atom" />
	<updated>2013-07-17T13:53:34Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=8483</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: ListView пара вопросов]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=73837#p73837" />
			<content type="html"><![CDATA[<p>Может это поможет:</p><div class="fancy_spoiler_switcher"><div class="fancy_spoiler_switcher_header" data-lang-open="открыть спойлер" data-lang-close="скрыть спойлер"><strong>+</strong>&nbsp;открыть спойлер</div><div class="fancy_spoiler"><div class="quotebox"><blockquote><p>; ======================================================================================================================<br />; Function:&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Constants for ListView controls<br />; AHK version:&nbsp; &nbsp; &nbsp; &nbsp;-<br />; Language:&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; English<br />; Version:&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;1.0.00.00/2011-09-09/just me<br />; Remarks:&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;What a control! Hope I&#039;ve got most of the important constants.<br />; ======================================================================================================================<br />LISTVIEW_CLASS&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; := &quot;SysListView32&quot;<br />CCM_FIRST&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:= 0x2000<br />LVM_FIRST&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:= 0x1000&nbsp; &nbsp; &nbsp; ; ListView messages<br />LVN_FIRST&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:= -100&nbsp; &nbsp; &nbsp; &nbsp; ; ListView notifications<br />; Messages =============================================================================================================<br />LVM_APPROXIMATEVIEWRECT := (LVM_FIRST + 64)<br />LVM_ARRANGE&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:= (LVM_FIRST + 22)<br />LVM_CANCELEDITLABEL&nbsp; &nbsp; &nbsp;:= (LVM_FIRST + 179)<br />LVM_CREATEDRAGIMAGE&nbsp; &nbsp; &nbsp;:= (LVM_FIRST + 33)<br />LVM_DELETEALLITEMS&nbsp; &nbsp; &nbsp; := (LVM_FIRST + 9)<br />LVM_DELETECOLUMN&nbsp; &nbsp; &nbsp; &nbsp; := (LVM_FIRST + 28)<br />LVM_DELETEITEM&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; := (LVM_FIRST + 8)<br />LVM_EDITLABELA&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; := (LVM_FIRST + 23)<br />LVM_EDITLABELW&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; := (LVM_FIRST + 118)<br />LVM_ENABLEGROUPVIEW&nbsp; &nbsp; &nbsp;:= (LVM_FIRST + 157)<br />LVM_ENSUREVISIBLE&nbsp; &nbsp; &nbsp; &nbsp;:= (LVM_FIRST + 19)<br />LVM_FINDITEMA&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:= (LVM_FIRST + 13)<br />LVM_FINDITEMW&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:= (LVM_FIRST + 83)<br />LVM_GETBKCOLOR&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; := (LVM_FIRST + 0)<br />LVM_GETBKIMAGEA&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:= (LVM_FIRST + 69)<br />LVM_GETBKIMAGEW&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:= (LVM_FIRST + 139)<br />LVM_GETCALLBACKMASK&nbsp; &nbsp; &nbsp;:= (LVM_FIRST + 10)<br />LVM_GETCOLUMNA&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; := (LVM_FIRST + 25)<br />LVM_GETCOLUMNORDERARRAY := (LVM_FIRST + 59)<br />LVM_GETCOLUMNW&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; := (LVM_FIRST + 95)<br />LVM_GETCOLUMNWIDTH&nbsp; &nbsp; &nbsp; := (LVM_FIRST + 29)<br />LVM_GETCOUNTPERPAGE&nbsp; &nbsp; &nbsp;:= (LVM_FIRST + 40)<br />LVM_GETEDITCONTROL&nbsp; &nbsp; &nbsp; := (LVM_FIRST + 24)<br />LVM_GETEMPTYTEXT&nbsp; &nbsp; &nbsp; &nbsp; := (LVM_FIRST + 204)&nbsp; &nbsp; ; &gt;= Vista<br />LVM_GETEXTENDEDLISTVIEWSTYLE := (LVM_FIRST + 55)<br />LVM_GETFOCUSEDGROUP&nbsp; &nbsp; &nbsp;:= (LVM_FIRST + 93)<br />LVM_GETFOOTERINFO&nbsp; &nbsp; &nbsp; &nbsp;:= (LVM_FIRST + 206)&nbsp; &nbsp; ; &gt;= Vista<br />LVM_GETFOOTERITEM&nbsp; &nbsp; &nbsp; &nbsp;:= (LVM_FIRST + 208)&nbsp; &nbsp; ; &gt;= Vista<br />LVM_GETFOOTERITEMRECT&nbsp; &nbsp;:= (LVM_FIRST + 207)&nbsp; &nbsp; ; &gt;= Vista<br />LVM_GETFOOTERRECT&nbsp; &nbsp; &nbsp; &nbsp;:= (LVM_FIRST + 205)&nbsp; &nbsp; ; &gt;= Vista<br />LVM_GETGROUPCOUNT&nbsp; &nbsp; &nbsp; &nbsp;:= (LVM_FIRST + 152)<br />LVM_GETGROUPINFO&nbsp; &nbsp; &nbsp; &nbsp; := (LVM_FIRST + 149)<br />LVM_GETGROUPINFOBYINDEX := (LVM_FIRST + 153)<br />LVM_GETGROUPMETRICS&nbsp; &nbsp; &nbsp;:= (LVM_FIRST + 156)<br />LVM_GETGROUPRECT&nbsp; &nbsp; &nbsp; &nbsp; := (LVM_FIRST + 98)&nbsp; &nbsp; &nbsp;; &gt;= Vista ?<br />LVM_GETGROUPSTATE&nbsp; &nbsp; &nbsp; &nbsp;:= (LVM_FIRST + 92)<br />LVM_GETHEADER&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:= (LVM_FIRST + 31)<br />LVM_GETHOTCURSOR&nbsp; &nbsp; &nbsp; &nbsp; := (LVM_FIRST + 63)<br />LVM_GETHOTITEM&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; := (LVM_FIRST + 61)<br />LVM_GETHOVERTIME&nbsp; &nbsp; &nbsp; &nbsp; := (LVM_FIRST + 72)<br />LVM_GETIMAGELIST&nbsp; &nbsp; &nbsp; &nbsp; := (LVM_FIRST + 2)<br />LVM_GETINSERTMARK&nbsp; &nbsp; &nbsp; &nbsp;:= (LVM_FIRST + 167)<br />LVM_GETINSERTMARKCOLOR&nbsp; := (LVM_FIRST + 171)<br />LVM_GETINSERTMARKRECT&nbsp; &nbsp;:= (LVM_FIRST + 169)<br />LVM_GETISEARCHSTRINGA&nbsp; &nbsp;:= (LVM_FIRST + 52)<br />LVM_GETISEARCHSTRINGW&nbsp; &nbsp;:= (LVM_FIRST + 117)<br />LVM_GETITEMA&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; := (LVM_FIRST + 5)<br />LVM_GETITEMCOUNT&nbsp; &nbsp; &nbsp; &nbsp; := (LVM_FIRST + 4)<br />LVM_GETITEMINDEXRECT&nbsp; &nbsp; := (LVM_FIRST + 209)&nbsp; &nbsp; ; &gt;= Vista<br />LVM_GETITEMPOSITION&nbsp; &nbsp; &nbsp;:= (LVM_FIRST + 16)<br />LVM_GETITEMRECT&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:= (LVM_FIRST + 14)<br />LVM_GETITEMSPACING&nbsp; &nbsp; &nbsp; := (LVM_FIRST + 51)<br />LVM_GETITEMSTATE&nbsp; &nbsp; &nbsp; &nbsp; := (LVM_FIRST + 44)<br />LVM_GETITEMTEXTA&nbsp; &nbsp; &nbsp; &nbsp; := (LVM_FIRST + 45)<br />LVM_GETITEMTEXTW&nbsp; &nbsp; &nbsp; &nbsp; := (LVM_FIRST + 115)<br />LVM_GETITEMW&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; := (LVM_FIRST + 75)<br />LVM_GETNEXTITEM&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:= (LVM_FIRST + 12)<br />LVM_GETNEXTITEMINDEX&nbsp; &nbsp; := (LVM_FIRST + 211)&nbsp; &nbsp; ; &gt;= Vista<br />LVM_GETNUMBEROFWORKAREAS := (LVM_FIRST + 73)<br />LVM_GETORIGIN&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:= (LVM_FIRST + 41)<br />LVM_GETOUTLINECOLOR&nbsp; &nbsp; &nbsp;:= (LVM_FIRST + 176)<br />LVM_GETSELECTEDCOLUMN&nbsp; &nbsp;:= (LVM_FIRST + 174)<br />LVM_GETSELECTEDCOUNT&nbsp; &nbsp; := (LVM_FIRST + 50)<br />LVM_GETSELECTIONMARK&nbsp; &nbsp; := (LVM_FIRST + 66)<br />LVM_GETSTRINGWIDTHA&nbsp; &nbsp; &nbsp;:= (LVM_FIRST + 17)<br />LVM_GETSTRINGWIDTHW&nbsp; &nbsp; &nbsp;:= (LVM_FIRST + 87)<br />LVM_GETSUBITEMRECT&nbsp; &nbsp; &nbsp; := (LVM_FIRST + 56)<br />LVM_GETTEXTBKCOLOR&nbsp; &nbsp; &nbsp; := (LVM_FIRST + 37)<br />LVM_GETTEXTCOLOR&nbsp; &nbsp; &nbsp; &nbsp; := (LVM_FIRST + 35)<br />LVM_GETTILEINFO&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:= (LVM_FIRST + 165)<br />LVM_GETTILEVIEWINFO&nbsp; &nbsp; &nbsp;:= (LVM_FIRST + 163)<br />LVM_GETTOOLTIPS&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:= (LVM_FIRST + 78)<br />LVM_GETTOPINDEX&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:= (LVM_FIRST + 39)<br />LVM_GETUNICODEFORMAT&nbsp; &nbsp; := (CCM_FIRST + 6)&nbsp; &nbsp; &nbsp; ; CCM_GETUNICODEFORMAT<br />LVM_GETVIEW&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:= (LVM_FIRST + 143)<br />LVM_GETVIEWRECT&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:= (LVM_FIRST + 34)<br />LVM_GETWORKAREAS&nbsp; &nbsp; &nbsp; &nbsp; := (LVM_FIRST + 70)<br />LVM_HASGROUP&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; := (LVM_FIRST + 161)<br />LVM_HITTEST&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:= (LVM_FIRST + 18)<br />LVM_INSERTCOLUMNA&nbsp; &nbsp; &nbsp; &nbsp;:= (LVM_FIRST + 27)<br />LVM_INSERTCOLUMNW&nbsp; &nbsp; &nbsp; &nbsp;:= (LVM_FIRST + 97)<br />LVM_INSERTGROUP&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:= (LVM_FIRST + 145)<br />LVM_INSERTGROUPSORTED&nbsp; &nbsp;:= (LVM_FIRST + 159)<br />LVM_INSERTITEMA&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:= (LVM_FIRST + 7)<br />LVM_INSERTITEMW&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:= (LVM_FIRST + 77)<br />LVM_INSERTMARKHITTEST&nbsp; &nbsp;:= (LVM_FIRST + 168)<br />LVM_ISGROUPVIEWENABLED&nbsp; := (LVM_FIRST + 175)<br />LVM_ISITEMVISIBLE&nbsp; &nbsp; &nbsp; &nbsp;:= (LVM_FIRST + 182)<br />LVM_MAPIDTOINDEX&nbsp; &nbsp; &nbsp; &nbsp; := (LVM_FIRST + 181)<br />LVM_MAPINDEXTOID&nbsp; &nbsp; &nbsp; &nbsp; := (LVM_FIRST + 180)<br />LVM_MOVEGROUP&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:= (LVM_FIRST + 151)<br />LVM_MOVEITEMTOGROUP&nbsp; &nbsp; &nbsp;:= (LVM_FIRST + 154)<br />LVM_REDRAWITEMS&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:= (LVM_FIRST + 21)<br />LVM_REMOVEALLGROUPS&nbsp; &nbsp; &nbsp;:= (LVM_FIRST + 160)<br />LVM_REMOVEGROUP&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:= (LVM_FIRST + 150)<br />LVM_SCROLL&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; := (LVM_FIRST + 20)<br />LVM_SETBKCOLOR&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; := (LVM_FIRST + 1)<br />LVM_SETBKIMAGEA&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:= (LVM_FIRST + 68)<br />LVM_SETBKIMAGEW&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:= (LVM_FIRST + 138)<br />LVM_SETCALLBACKMASK&nbsp; &nbsp; &nbsp;:= (LVM_FIRST + 11)<br />LVM_SETCOLUMNA&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; := (LVM_FIRST + 26)<br />LVM_SETCOLUMNORDERARRAY := (LVM_FIRST + 58)<br />LVM_SETCOLUMNW&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; := (LVM_FIRST + 96)<br />LVM_SETCOLUMNWIDTH&nbsp; &nbsp; &nbsp; := (LVM_FIRST + 30)<br />LVM_SETEXTENDEDLISTVIEWSTYLE := (LVM_FIRST + 54)&nbsp; &nbsp;; optional wParam == mask<br />LVM_SETGROUPINFO&nbsp; &nbsp; &nbsp; &nbsp; := (LVM_FIRST + 147)<br />LVM_SETGROUPMETRICS&nbsp; &nbsp; &nbsp;:= (LVM_FIRST + 155)<br />LVM_SETHOTCURSOR&nbsp; &nbsp; &nbsp; &nbsp; := (LVM_FIRST + 62)<br />LVM_SETHOTITEM&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; := (LVM_FIRST + 60)<br />LVM_SETHOVERTIME&nbsp; &nbsp; &nbsp; &nbsp; := (LVM_FIRST + 71)<br />LVM_SETICONSPACING&nbsp; &nbsp; &nbsp; := (LVM_FIRST + 53)<br />LVM_SETIMAGELIST&nbsp; &nbsp; &nbsp; &nbsp; := (LVM_FIRST + 3)<br />LVM_SETINFOTIP&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; := (LVM_FIRST + 173)<br />LVM_SETINSERTMARK&nbsp; &nbsp; &nbsp; &nbsp;:= (LVM_FIRST + 166)<br />LVM_SETINSERTMARKCOLOR&nbsp; := (LVM_FIRST + 170)<br />LVM_SETITEMA&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; := (LVM_FIRST + 6)<br />LVM_SETITEMCOUNT&nbsp; &nbsp; &nbsp; &nbsp; := (LVM_FIRST + 47)<br />LVM_SETITEMINDEXSTATE&nbsp; &nbsp;:= (LVM_FIRST + 210)&nbsp; &nbsp; ; &gt;= Vista<br />LVM_SETITEMPOSITION&nbsp; &nbsp; &nbsp;:= (LVM_FIRST + 15)<br />LVM_SETITEMPOSITION32&nbsp; &nbsp;:= (LVM_FIRST + 49)<br />LVM_SETITEMSTATE&nbsp; &nbsp; &nbsp; &nbsp; := (LVM_FIRST + 43)<br />LVM_SETITEMTEXTA&nbsp; &nbsp; &nbsp; &nbsp; := (LVM_FIRST + 46)<br />LVM_SETITEMTEXTW&nbsp; &nbsp; &nbsp; &nbsp; := (LVM_FIRST + 116)<br />LVM_SETITEMW&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; := (LVM_FIRST + 76)<br />LVM_SETOUTLINECOLOR&nbsp; &nbsp; &nbsp;:= (LVM_FIRST + 177)<br />LVM_SETSELECTIONMARK&nbsp; &nbsp; := (LVM_FIRST + 67)<br />LVM_SETTEXTBKCOLOR&nbsp; &nbsp; &nbsp; := (LVM_FIRST + 38)<br />LVM_SETTEXTCOLOR&nbsp; &nbsp; &nbsp; &nbsp; := (LVM_FIRST + 36)<br />LVM_SETTILEINFO&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:= (LVM_FIRST + 164)<br />LVM_SETTILEVIEWINFO&nbsp; &nbsp; &nbsp;:= (LVM_FIRST + 162)<br />LVM_SETTOOLTIPS&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:= (LVM_FIRST + 74)<br />LVM_SETUNICODEFORMAT&nbsp; &nbsp; := (CCM_FIRST + 5)&nbsp; &nbsp; &nbsp; ; CCM_SETUNICODEFORMAT<br />LVM_SETVIEW&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:= (LVM_FIRST + 142)<br />LVM_SETWORKAREAS&nbsp; &nbsp; &nbsp; &nbsp; := (LVM_FIRST + 65)<br />LVM_SORTGROUPS&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; := (LVM_FIRST + 158)<br />LVM_SORTITEMS&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:= (LVM_FIRST + 48)<br />LVM_SORTITEMSEX&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:= (LVM_FIRST + 81)<br />LVM_SUBITEMHITTEST&nbsp; &nbsp; &nbsp; := (LVM_FIRST + 57)<br />LVM_UPDATE&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; := (LVM_FIRST + 42)<br />; Notifications ========================================================================================================<br />LVN_BEGINDRAG&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:= (LVN_FIRST-9)<br />LVN_BEGINLABELEDITA&nbsp; &nbsp; &nbsp;:= (LVN_FIRST-5)<br />LVN_BEGINLABELEDITW&nbsp; &nbsp; &nbsp;:= (LVN_FIRST-75)<br />LVN_BEGINRDRAG&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; := (LVN_FIRST-11)<br />LVN_BEGINSCROLL&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:= (LVN_FIRST-80)<br />LVN_COLUMNCLICK&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:= (LVN_FIRST-8)<br />LVN_COLUMNDROPDOWN&nbsp; &nbsp; &nbsp; := (LVN_FIRST-64)&nbsp; &nbsp; ; &gt;= Vista<br />LVN_COLUMNOVERFLOWCLICK := (LVN_FIRST-66)&nbsp; &nbsp; ; &gt;= Vista<br />LVN_DELETEALLITEMS&nbsp; &nbsp; &nbsp; := (LVN_FIRST-4)<br />LVN_DELETEITEM&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; := (LVN_FIRST-3)<br />LVN_ENDLABELEDITA&nbsp; &nbsp; &nbsp; &nbsp;:= (LVN_FIRST-6)<br />LVN_ENDLABELEDITW&nbsp; &nbsp; &nbsp; &nbsp;:= (LVN_FIRST-76)<br />LVN_ENDSCROLL&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:= (LVN_FIRST-81)<br />LVN_GETDISPINFOA&nbsp; &nbsp; &nbsp; &nbsp; := (LVN_FIRST-50)<br />LVN_GETDISPINFOW&nbsp; &nbsp; &nbsp; &nbsp; := (LVN_FIRST-77)<br />LVN_GETEMPTYMARKUP&nbsp; &nbsp; &nbsp; := (LVN_FIRST-87)&nbsp; &nbsp; ; &gt;= Vista<br />LVN_GETINFOTIPA&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:= (LVN_FIRST-57)<br />LVN_GETINFOTIPW&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:= (LVN_FIRST-58)<br />LVN_HOTTRACK&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; := (LVN_FIRST-21)<br />LVN_INCREMENTALSEARCHA&nbsp; := (LVN_FIRST-62)<br />LVN_INCREMENTALSEARCHW&nbsp; := (LVN_FIRST-63)<br />LVN_INSERTITEM&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; := (LVN_FIRST-2)<br />LVN_ITEMACTIVATE&nbsp; &nbsp; &nbsp; &nbsp; := (LVN_FIRST-14)<br />LVN_ITEMCHANGED&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:= (LVN_FIRST-1)<br />LVN_ITEMCHANGING&nbsp; &nbsp; &nbsp; &nbsp; := (LVN_FIRST-0)<br />LVN_KEYDOWN&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:= (LVN_FIRST-55)<br />LVN_LINKCLICK&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:= (LVN_FIRST-84)&nbsp; &nbsp; ; &gt;= Vista<br />LVN_MARQUEEBEGIN&nbsp; &nbsp; &nbsp; &nbsp; := (LVN_FIRST-56)<br />LVN_ODCACHEHINT&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:= (LVN_FIRST-13)<br />LVN_ODFINDITEMA&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:= (LVN_FIRST-52)<br />LVN_ODFINDITEMW&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:= (LVN_FIRST-79)<br />LVN_ODSTATECHANGED&nbsp; &nbsp; &nbsp; := (LVN_FIRST-15)<br />LVN_SETDISPINFOA&nbsp; &nbsp; &nbsp; &nbsp; := (LVN_FIRST-51)<br />LVN_SETDISPINFOW&nbsp; &nbsp; &nbsp; &nbsp; := (LVN_FIRST-78)<br />; Styles ===============================================================================================================<br />LVS_ALIGNLEFT&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:= 0x0800<br />LVS_ALIGNMASK&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:= 0x0c00<br />LVS_ALIGNTOP&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; := 0x0000<br />LVS_AUTOARRANGE&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:= 0x0100<br />LVS_EDITLABELS&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; := 0x0200<br />LVS_ICON&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; := 0x0000<br />LVS_LIST&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; := 0x0003<br />LVS_NOCOLUMNHEADER&nbsp; &nbsp; &nbsp; := 0x4000<br />LVS_NOLABELWRAP&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:= 0x0080<br />LVS_NOSCROLL&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; := 0x2000<br />LVS_NOSORTHEADER&nbsp; &nbsp; &nbsp; &nbsp; := 0x8000<br />LVS_OWNERDATA&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:= 0x1000<br />LVS_OWNERDRAWFIXED&nbsp; &nbsp; &nbsp; := 0x0400<br />LVS_REPORT&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; := 0x0001<br />LVS_SHAREIMAGELISTS&nbsp; &nbsp; &nbsp;:= 0x0040<br />LVS_SHOWSELALWAYS&nbsp; &nbsp; &nbsp; &nbsp;:= 0x0008<br />LVS_SINGLESEL&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:= 0x0004<br />LVS_SMALLICON&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:= 0x0002<br />LVS_SORTASCENDING&nbsp; &nbsp; &nbsp; &nbsp;:= 0x0010<br />LVS_SORTDESCENDING&nbsp; &nbsp; &nbsp; := 0x0020<br />LVS_TYPEMASK&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; := 0x0003<br />LVS_TYPESTYLEMASK&nbsp; &nbsp; &nbsp; &nbsp;:= 0xfc00<br />; ExStyles =============================================================================================================<br />LVS_EX_AUTOAUTOARRANGE&nbsp; := 0x01000000&nbsp; ; &gt;= Vista: icons automatically arrange if no icon positions have been set<br />LVS_EX_AUTOCHECKSELECT&nbsp; := 0x08000000&nbsp; ; &gt;= Vista<br />LVS_EX_AUTOSIZECOLUMNS&nbsp; := 0x10000000&nbsp; ; &gt;= Vista<br />LVS_EX_BORDERSELECT&nbsp; &nbsp; &nbsp;:= 0x00008000&nbsp; ; border selection style instead of highlight<br />LVS_EX_CHECKBOXES&nbsp; &nbsp; &nbsp; &nbsp;:= 0x00000004<br />LVS_EX_COLUMNOVERFLOW&nbsp; &nbsp;:= 0x80000000&nbsp; ; &gt;= Vista<br />LVS_EX_COLUMNSNAPPOINTS := 0x40000000&nbsp; ; &gt;= Vista<br />LVS_EX_DOUBLEBUFFER&nbsp; &nbsp; &nbsp;:= 0x00010000<br />LVS_EX_FLATSB&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:= 0x00000100<br />LVS_EX_FULLROWSELECT&nbsp; &nbsp; := 0x00000020&nbsp; ; applies to report mode only<br />LVS_EX_GRIDLINES&nbsp; &nbsp; &nbsp; &nbsp; := 0x00000001<br />LVS_EX_HEADERDRAGDROP&nbsp; &nbsp;:= 0x00000010<br />LVS_EX_HEADERINALLVIEWS := 0x02000000&nbsp; ; &gt;= Vista: display column header in all view modes<br />LVS_EX_HIDELABELS&nbsp; &nbsp; &nbsp; &nbsp;:= 0x00020000<br />LVS_EX_INFOTIP&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; := 0x00000400&nbsp; ; listview does InfoTips for you<br />LVS_EX_JUSTIFYCOLUMNS&nbsp; &nbsp;:= 0x00200000&nbsp; ; &gt;= Vista: icons are lined up in columns that use up the whole view area<br />LVS_EX_LABELTIP&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:= 0x00004000&nbsp; ; listview unfolds partly hidden labels if it does not have infotip text<br />LVS_EX_MULTIWORKAREAS&nbsp; &nbsp;:= 0x00002000<br />LVS_EX_ONECLICKACTIVATE := 0x00000040<br />LVS_EX_REGIONAL&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:= 0x00000200<br />LVS_EX_SIMPLESELECT&nbsp; &nbsp; &nbsp;:= 0x00100000&nbsp; ; also changes overlay rendering to top right for icon mode<br />LVS_EX_SINGLEROW&nbsp; &nbsp; &nbsp; &nbsp; := 0x00040000<br />LVS_EX_SNAPTOGRID&nbsp; &nbsp; &nbsp; &nbsp;:= 0x00080000&nbsp; ; icons automatically snap to grid<br />LVS_EX_SUBITEMIMAGES&nbsp; &nbsp; := 0x00000002<br />LVS_EX_TRACKSELECT&nbsp; &nbsp; &nbsp; := 0x00000008<br />LVS_EX_TRANSPARENTBKGND := 0x00400000&nbsp; ; &gt;= Vista: background is painted by the parent via WM_PRINTCLIENT<br />LVS_EX_TRANSPARENTSHADOWTEXT := 0x00800000&nbsp; ; &gt;=Vista: enable shadow text on transparent backgrounds only (useful with bitmaps)<br />LVS_EX_TWOCLICKACTIVATE := 0x00000080<br />LVS_EX_UNDERLINECOLD&nbsp; &nbsp; := 0x00001000<br />LVS_EX_UNDERLINEHOT&nbsp; &nbsp; &nbsp;:= 0x00000800<br />; Others ===============================================================================================================<br />; LVM_GET/SETIMAGELIST<br />LVSIL_NORMAL&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; := 0<br />LVSIL_SMALL&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:= 1<br />LVSIL_STATE&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:= 2<br />LVSIL_GROUPHEADER&nbsp; &nbsp; &nbsp; &nbsp;:= 3<br />; LVITEM mask<br />LVIF_TEXT&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:= 0x00000001<br />LVIF_IMAGE&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; := 0x00000002<br />LVIF_PARAM&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; := 0x00000004<br />LVIF_STATE&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; := 0x00000008<br />LVIF_INDENT&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:= 0x00000010<br />LVIF_NORECOMPUTE&nbsp; &nbsp; &nbsp; &nbsp; := 0x00000800<br />LVIF_GROUPID&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; := 0x00000100<br />LVIF_COLUMNS&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; := 0x00000200<br />LVIF_DI_SETITEM&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:= 0x00001000<br />LVIF_COLFMT&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:= 0x00010000&nbsp; ; &gt;= Vista - the piColFmt member is valid in addition to puColumns<br />; LVITEM state<br />LVIS_FOCUSED&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; := 0x0001<br />LVIS_SELECTED&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:= 0x0002<br />LVIS_CUT&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; := 0x0004<br />LVIS_DROPHILITED&nbsp; &nbsp; &nbsp; &nbsp; := 0x0008<br />LVIS_GLOW&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:= 0x0010&nbsp; &nbsp; &nbsp; ; not documented in MSDN<br />LVIS_ACTIVATING&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:= 0x0020<br />LVIS_OVERLAYMASK&nbsp; &nbsp; &nbsp; &nbsp; := 0x0F00<br />LVIS_STATEIMAGEMASK&nbsp; &nbsp; &nbsp;:= 0xF000<br />; LVN_GETNEXTITEM<br />LVNI_ALL&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; := 0x0000<br />LVNI_FOCUSED&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; := 0x0001<br />LVNI_SELECTED&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:= 0x0002<br />LVNI_CUT&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; := 0x0004<br />LVNI_DROPHILITED&nbsp; &nbsp; &nbsp; &nbsp; := 0x0008<br />LVNI_STATEMASK&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; := (LVNI_FOCUSED | LVNI_SELECTED | LVNI_CUT | LVNI_DROPHILITED)&nbsp; &nbsp;; &gt;= Vista<br />LVNI_VISIBLEORDER&nbsp; &nbsp; &nbsp; &nbsp;:= 0x0010&nbsp; &nbsp; &nbsp; ; &gt;= Vista<br />LVNI_PREVIOUS&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:= 0x0020&nbsp; &nbsp; &nbsp; ; &gt;= Vista<br />LVNI_VISIBLEONLY&nbsp; &nbsp; &nbsp; &nbsp; := 0x0040&nbsp; &nbsp; &nbsp; ; &gt;= Vista<br />LVNI_SAMEGROUPONLY&nbsp; &nbsp; &nbsp; := 0x0080&nbsp; &nbsp; &nbsp; ; &gt;= Vista<br />LVNI_ABOVE&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; := 0x0100<br />LVNI_BELOW&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; := 0x0200<br />LVNI_TOLEFT&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:= 0x0400<br />LVNI_TORIGHT&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; := 0x0800<br />LVNI_DIRECTIONMASK&nbsp; &nbsp; &nbsp; := (LVNI_ABOVE | LVNI_BELOW | LVNI_TOLEFT | LVNI_TORIGHT)&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;; &gt;= Vista<br />; LVFINDINFO flags<br />LVFI_PARAM&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; := 0x0001<br />LVFI_STRING&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:= 0x0002<br />LVFI_SUBSTRING&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; := 0x0004&nbsp; ; &gt;= Vista - same as LVFI_PARTIAL<br />LVFI_PARTIAL&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; := 0x0008<br />LVFI_WRAP&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:= 0x0020<br />LVFI_NEARESTXY&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; := 0x0040<br />; LVM_GETITEMRECT<br />LVIR_BOUNDS&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:= 0<br />LVIR_ICON&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:= 1<br />LVIR_LABEL&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; := 2<br />LVIR_SELECTBOUNDS&nbsp; &nbsp; &nbsp; &nbsp;:= 3<br />; LVHITTESTINFO flags<br />LVHT_NOWHERE&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; := 0x00000001<br />LVHT_ONITEMICON&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:= 0x00000002<br />LVHT_ONITEMLABEL&nbsp; &nbsp; &nbsp; &nbsp; := 0x00000004<br />LVHT_ONITEMSTATEICON&nbsp; &nbsp; := 0x00000008<br />LVHT_ONITEM&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:=(LVHT_ONITEMICON | LVHT_ONITEMLABEL | LVHT_ONITEMSTATEICON)<br />LVHT_ABOVE&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; := 0x00000008<br />LVHT_BELOW&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; := 0x00000010<br />LVHT_TORIGHT&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; := 0x00000020<br />LVHT_TOLEFT&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:= 0x00000040<br />LVHT_EX_GROUP_HEADER&nbsp; &nbsp; := 0x10000000&nbsp; &nbsp; ; &gt;= Vista<br />LVHT_EX_GROUP_FOOTER&nbsp; &nbsp; := 0x20000000&nbsp; &nbsp; ; &gt;= Vista<br />LVHT_EX_GROUP_COLLAPSE&nbsp; := 0x40000000&nbsp; &nbsp; ; &gt;= Vista<br />LVHT_EX_GROUP_BACKGROUND := 0x80000000&nbsp; &nbsp;; &gt;= Vista<br />LVHT_EX_GROUP_STATEICON := 0x01000000&nbsp; &nbsp; ; &gt;= Vista<br />LVHT_EX_GROUP_SUBSETLINK := 0x02000000&nbsp; &nbsp;; &gt;= Vista<br />LVHT_EX_GROUP&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:=(LVHT_EX_GROUP_BACKGROUND | LVHT_EX_GROUP_COLLAPSE | LVHT_EX_GROUP_FOOTER <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;| LVHT_EX_GROUP_HEADER | LVHT_EX_GROUP_STATEICON | LVHT_EX_GROUP_SUBSETLINK)<br />LVHT_EX_ONCONTENTS&nbsp; &nbsp; &nbsp; := 0x04000000&nbsp; &nbsp; ; &gt;= Vista - on item AND not on the background<br />LVHT_EX_FOOTER&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; := 0x08000000&nbsp; &nbsp; ; &gt;= Vista<br />; LVM_ARRANGE<br />LVA_DEFAULT&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:= 0x0000<br />LVA_ALIGNLEFT&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:= 0x0001<br />LVA_ALIGNTOP&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; := 0x0002<br />LVA_SNAPTOGRID&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; := 0x0005<br />; LVCOLUMN mask<br />LVCF_FMT&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; := 0x0001<br />LVCF_WIDTH&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; := 0x0002<br />LVCF_TEXT&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:= 0x0004<br />LVCF_SUBITEM&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; := 0x0008<br />LVCF_IMAGE&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; := 0x0010<br />LVCF_ORDER&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; := 0x0020<br />LVCF_MINWIDTH&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:= 0x0040&nbsp; &nbsp;; &gt;= Vista<br />LVCF_DEFAULTWIDTH&nbsp; &nbsp; &nbsp; &nbsp;:= 0x0080&nbsp; &nbsp;; &gt;= Vista<br />LVCF_IDEALWIDTH&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:= 0x0100&nbsp; &nbsp;; &gt;= Vista<br />; LVCOLUMN fmt, LVITEM piColFmt<br />LVCFMT_LEFT&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:= 0x0000&nbsp; &nbsp;; Same as HDF_LEFT<br />LVCFMT_RIGHT&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; := 0x0001&nbsp; &nbsp;; Same as HDF_RIGHT<br />LVCFMT_CENTER&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:= 0x0002&nbsp; &nbsp;; Same as HDF_CENTER<br />LVCFMT_JUSTIFYMASK&nbsp; &nbsp; &nbsp; := 0x0003&nbsp; &nbsp;; Same as HDF_JUSTIFYMASK<br />LVCFMT_IMAGE&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; := 0x0800&nbsp; &nbsp;; Same as HDF_IMAGE<br />LVCFMT_BITMAP_ON_RIGHT&nbsp; := 0x1000&nbsp; &nbsp;; Same as HDF_BITMAP_ON_RIGHT<br />LVCFMT_COL_HAS_IMAGES&nbsp; &nbsp;:= 0x8000&nbsp; &nbsp;; Same as HDF_OWNERDRAW<br />LVCFMT_FIXED_WIDTH&nbsp; &nbsp; &nbsp; := 0x00100&nbsp; ; &gt;= Vista&nbsp; Can&#039;t resize the column; same as HDF_FIXEDWIDTH<br />LVCFMT_LINE_BREAK&nbsp; &nbsp; &nbsp; &nbsp;:= 0x100000 ; &gt;= Win7&nbsp; &nbsp;Move to the top of the next list of columns<br />LVCFMT_FILL&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:= 0x200000 ; &gt;= Win7&nbsp; &nbsp;Fill the remainder of the tile area. Might have a title.<br />LVCFMT_WRAP&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:= 0x400000 ; &gt;= Win7&nbsp; &nbsp;This sub-item can be wrapped.<br />LVCFMT_NO_TITLE&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:= 0x800000 ; &gt;= Win7&nbsp; &nbsp;This sub-item doesn&#039;t have an title.<br />LVCFMT_TILE_PLACEMENTMASK := (LVCFMT_LINE_BREAK | LVCFMT_FILL) ; &gt;= Win7<br />LVCFMT_NO_DPI_SCALE&nbsp; &nbsp; &nbsp;:= 0x40000&nbsp; ; &gt;= Vista&nbsp; If not set, CCM_DPISCALE will govern scaling up fixed width<br />LVCFMT_FIXED_RATIO&nbsp; &nbsp; &nbsp; := 0x80000&nbsp; ; &gt;= Vista&nbsp; Width will augment with the row height<br />LVCFMT_SPLITBUTTON&nbsp; &nbsp; &nbsp; := 0x1000000&nbsp; ; &gt;= Vista&nbsp; Column is a split button; same as HDF_SPLITBUTTON<br />; LVM_SETCOLOMNWIDTH<br />LVSCW_AUTOSIZE&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; := -1<br />LVSCW_AUTOSIZE_USEHEADER := -2<br />; LVM_SETITEMCOUNT<br />LVSICF_NOINVALIDATEALL&nbsp; := 0x00000001<br />LVSICF_NOSCROLL&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:= 0x00000002<br />; LVM_SETWORKAREAS<br />LV_MAX_WORKAREAS&nbsp; &nbsp; &nbsp; &nbsp; := 16<br />; LVBKIMAGE ulFlags<br />LVBKIF_SOURCE_NONE&nbsp; &nbsp; &nbsp; := 0x00000000<br />LVBKIF_SOURCE_HBITMAP&nbsp; &nbsp;:= 0x00000001<br />LVBKIF_SOURCE_URL&nbsp; &nbsp; &nbsp; &nbsp;:= 0x00000002<br />LVBKIF_SOURCE_MASK&nbsp; &nbsp; &nbsp; := 0x00000003<br />LVBKIF_STYLE_NORMAL&nbsp; &nbsp; &nbsp;:= 0x00000000<br />LVBKIF_STYLE_TILE&nbsp; &nbsp; &nbsp; &nbsp;:= 0x00000010<br />LVBKIF_STYLE_MASK&nbsp; &nbsp; &nbsp; &nbsp;:= 0x00000010<br />LVBKIF_FLAG_TILEOFFSET&nbsp; := 0x00000100<br />LVBKIF_TYPE_WATERMARK&nbsp; &nbsp;:= 0x10000000<br />LVBKIF_FLAG_ALPHABLEND&nbsp; := 0x20000000<br />; LVM_GET/SETVIEW<br />LV_VIEW_ICON&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; := 0x0000<br />LV_VIEW_DETAILS&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:= 0x0001<br />LV_VIEW_SMALLICON&nbsp; &nbsp; &nbsp; &nbsp;:= 0x0002<br />LV_VIEW_LIST&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; := 0x0003<br />LV_VIEW_TILE&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; := 0x0004<br />LV_VIEW_MAX&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:= 0x0004<br />; LVGROUP mask<br />LVGF_NONE&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:= 0x00000000<br />LVGF_HEADER&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:= 0x00000001<br />LVGF_FOOTER&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:= 0x00000002<br />LVGF_STATE&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; := 0x00000004<br />LVGF_ALIGN&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; := 0x00000008<br />LVGF_GROUPID&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; := 0x00000010<br />LVGF_SUBTITLE&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:= 0x00000100&nbsp; ; &gt;= Vista&nbsp; pszSubtitle is valid<br />LVGF_TASK&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:= 0x00000200&nbsp; ; &gt;= Vista&nbsp; pszTask is valid<br />LVGF_DESCRIPTIONTOP&nbsp; &nbsp; &nbsp;:= 0x00000400&nbsp; ; &gt;= Vista&nbsp; pszDescriptionTop is valid<br />LVGF_DESCRIPTIONBOTTOM&nbsp; := 0x00000800&nbsp; ; &gt;= Vista&nbsp; pszDescriptionBottom is valid<br />LVGF_TITLEIMAGE&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:= 0x00001000&nbsp; ; &gt;= Vista&nbsp; iTitleImage is valid<br />LVGF_EXTENDEDIMAGE&nbsp; &nbsp; &nbsp; := 0x00002000&nbsp; ; &gt;= Vista&nbsp; iExtendedImage is valid<br />LVGF_ITEMS&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; := 0x00004000&nbsp; ; &gt;= Vista&nbsp; iFirstItem and cItems are valid<br />LVGF_SUBSET&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:= 0x00008000&nbsp; ; &gt;= Vista&nbsp; pszSubsetTitle is valid<br />LVGF_SUBSETITEMS&nbsp; &nbsp; &nbsp; &nbsp; := 0x00010000&nbsp; ; &gt;= Vista&nbsp; readonly, cItems holds count of items in visible subset, iFirstItem is valid<br />; LVGROUP state<br />LVGS_NORMAL&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:= 0x00000000<br />LVGS_COLLAPSED&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; := 0x00000001<br />LVGS_HIDDEN&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:= 0x00000002<br />LVGS_NOHEADER&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:= 0x00000004&nbsp; ; &gt;= Vista ?<br />LVGS_COLLAPSIBLE&nbsp; &nbsp; &nbsp; &nbsp; := 0x00000008&nbsp; ; &gt;= Vista ?<br />LVGS_FOCUSED&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; := 0x00000010&nbsp; ; &gt;= Vista ?<br />LVGS_SELECTED&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:= 0x00000020&nbsp; ; &gt;= Vista ?<br />LVGS_SUBSETED&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:= 0x00000040&nbsp; ; &gt;= Vista ?<br />LVGS_SUBSETLINKFOCUSED&nbsp; := 0x00000080&nbsp; ; &gt;= Vista ?<br />; LVGROUP uAlign<br />LVGA_HEADER_LEFT&nbsp; &nbsp; &nbsp; &nbsp; := 0x00000001<br />LVGA_HEADER_CENTER&nbsp; &nbsp; &nbsp; := 0x00000002<br />LVGA_HEADER_RIGHT&nbsp; &nbsp; &nbsp; &nbsp;:= 0x00000004&nbsp; ; Don&#039;t forget to validate exclusivity<br />LVGA_FOOTER_LEFT&nbsp; &nbsp; &nbsp; &nbsp; := 0x00000008<br />LVGA_FOOTER_CENTER&nbsp; &nbsp; &nbsp; := 0x00000010<br />LVGA_FOOTER_RIGHT&nbsp; &nbsp; &nbsp; &nbsp;:= 0x00000020&nbsp; ; Don&#039;t forget to validate exclusivity<br />; LVM_GETGROUPRECT<br />LVGGR_GROUP&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:= 0&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;; Entire expanded group<br />LVGGR_HEADER&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; := 1&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;; Header only (collapsed group)<br />LVGGR_LABEL&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:= 2&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;; Label only<br />LVGGR_SUBSETLINK&nbsp; &nbsp; &nbsp; &nbsp; := 3&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;; subset link only<br />; LVGROUPMETRICS mask<br />LVGMF_NONE&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; := 0x00000000<br />LVGMF_BORDERSIZE&nbsp; &nbsp; &nbsp; &nbsp; := 0x00000001<br />LVGMF_BORDERCOLOR&nbsp; &nbsp; &nbsp; &nbsp;:= 0x00000002<br />LVGMF_TEXTCOLOR&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:= 0x00000004<br />; LVTILEVIEWINFO dwMask<br />LVTVIM_TILESIZE&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:= 0x00000001<br />LVTVIM_COLUMNS&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; := 0x00000002<br />LVTVIM_LABELMARGIN&nbsp; &nbsp; &nbsp; := 0x00000004<br />; LVTILEVIEWINFO dwFlags<br />LVTVIF_AUTOSIZE&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:= 0x00000000<br />LVTVIF_FIXEDWIDTH&nbsp; &nbsp; &nbsp; &nbsp;:= 0x00000001<br />LVTVIF_FIXEDHEIGHT&nbsp; &nbsp; &nbsp; := 0x00000002<br />LVTVIF_FIXEDSIZE&nbsp; &nbsp; &nbsp; &nbsp; := 0x00000003<br />LVTVIF_EXTENDED&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:= 0x00000004&nbsp; ; &gt;= Vista<br />; LVINSERTMARK dwFlags<br />LVIM_AFTER&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; := 0x00000001&nbsp; ; TRUE = insert After iItem, otherwise before<br />; LVFOOTERINFO mask (&gt;= Vista)<br />LVFF_ITEMCOUNT&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; := 0x00000001<br />; LVFOOTERITEM (&gt;= Vista)<br />LVFIF_TEXT&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; := 0x00000001<br />LVFIF_STATE&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:= 0x00000002<br />; footer item state<br />LVFIS_FOCUSED&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:= 0x0001<br />; NMITEMACTIVATE uKeyFlags<br />LVKF_ALT&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; := 0x0001<br />LVKF_CONTROL&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; := 0x0002<br />LVKF_SHIFT&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; := 0x0004<br />; NMLVCUSTOMDRAW<br />; dwItemType<br />LVCDI_ITEM&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; := 0x00000000<br />LVCDI_GROUP&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:= 0x00000001<br />LVCDI_ITEMSLIST&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:= 0x00000002<br />; ListView custom draw return values<br />LVCDRF_NOSELECT&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:= 0x00010000<br />LVCDRF_NOGROUPFRAME&nbsp; &nbsp; &nbsp;:= 0x00020000<br />; NMLVGETINFOTIP dwFlag<br />LVGIT_UNFOLDED&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; := 0x0001<br />; LVN_INCREMENTALSEARCH LVFINDINFO lParam<br />LVNSCH_DEFAULT&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; := -1<br />LVNSCH_ERROR&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; := -2<br />LVNSCH_IGNORE&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:= -3<br />; NMLVEMPTYMARKUP dwFlags ( &gt;= Vista)<br />EMF_CENTERED&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; := 0x00000001&nbsp; ; render markup centered in the listview area<br />L_MAX_URL_LENGTH&nbsp; &nbsp; &nbsp; &nbsp; := (2048 + 32 + 3) ; 3 = sizeof(&quot;://&quot;)</p></blockquote></div></div></div><p>Ширина наверное так:</p><div class="codebox"><pre><code>
Gui, Add, ListView, x20 y20 h150 w150 vList1 Count1 -Hdr -LV0x10 -LV0x20 -Multi NoSortHdr -WantF2 Background000000 cLime, |
LV_Add(&quot;&quot;,&quot;TEXT1&quot;)
LV_ModifyCol(1, &quot;Center&quot;)

Gui, Add, ListView, x+50 y20 h150 w150 vList2 Count1 -Hdr -LV0x10 -LV0x20 -Multi NoSortHdr -WantF2 Background000000 cLime hwndHListView, |
LV_Add(&quot;&quot;,&quot;TEXT2&quot;) 
LV_ModifyCol(1, &quot;Center&quot;)

Gui Show,w390 h190 ,Test ListView

LVM_FIRST := 0x1000
LVM_SETCOLUMNWIDTH := 30
return

1:: 
    SendMessage, LVM_FIRST + LVM_SETCOLUMNWIDTH, , 333 , , ahk_id %HListView%           
    return
</code></pre></div><p>Про высоту я не понял чего вы хотите добится.</p>]]></content>
			<author>
				<name><![CDATA[serzh82saratov]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27879</uri>
			</author>
			<updated>2013-07-17T13:53:34Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=73837#p73837</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: ListView пара вопросов]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=73832#p73832" />
			<content type="html"><![CDATA[<p>Порылся в сети, но очень мало информации для AHK по данному элементу, ответов короче не нашел.<br /> Вопрос 1.<br />Имеется 2 элемента ListView можно ли для каждого отдельно задать размер шрифта внутри таблицы?<br />Вопрос 2.<br />Имеется элемент </p><div class="codebox"><pre><code>Gui, Add, ListView h150 w150 vList1, |</code></pre></div><p>&nbsp; добавляем к нему строку </p><div class="codebox"><pre><code>LV_Add(&quot;&quot;,&quot;TEXT1&quot;)</code></pre></div><p> делаем текст внутри строки по центру </p><div class="codebox"><pre><code>LV_ModifyCol(1, &quot;Center&quot;)</code></pre></div><p> Можно ли задать высоту и ширину строки внутри данного элемента, либо хотя бы сделать на всю ширину и высоту элемента ListView ?<br />Внизу праведен код для отправной точки.</p><div class="codebox"><pre><code>
;Test ListView
Gui, Add, ListView, x20 y20 h150 w150 vList1 Count1 -Hdr -LV0x10 -LV0x20 -Multi NoSortHdr -WantF2 Background000000 cLime, |
LV_Add(&quot;&quot;,&quot;TEXT1&quot;)
LV_ModifyCol(1, &quot;Center&quot;)

Gui, Add, ListView, x+50 y20 h150 w150 vList2 Count1 -Hdr -LV0x10 -LV0x20 -Multi NoSortHdr -WantF2 Background000000 cLime, |
LV_Add(&quot;&quot;,&quot;TEXT2&quot;)
LV_ModifyCol(1, &quot;Center&quot;)

Gui Show,w390 h190 ,Test ListView
return

GuiClose:
ExitApp
</code></pre></div><p>За ранее очень благодарен!</p>]]></content>
			<author>
				<name><![CDATA[Strongest]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=30412</uri>
			</author>
			<updated>2013-07-17T11:09:15Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=73832#p73832</id>
		</entry>
</feed>
