;
;	HSP help managerp HELP\[Xt@C
;	(æªªu;vÌsÍRgÆµÄ³êÜ·)
;

%type
g£½ß
%ver
3.3
%note
llmod3.hspðCN[h·éBKvÉ¶Älistview.hsp,progbox.hsp,trackbox.hsp,treebox.hsp,udbtn.hspðCN[h·é

%date
2009/08/01
%author
tom
%dll
llmod3
%url
http://www5b.biglobe.ne.jp/~diamond/hsp/hsp2file.htm



%index
listview
Xgr[Ìì¬
%group
IuWFNg§ä½ß
%prm
n1,n2,n3
n1 : 
n2 : ³
n3 : X^C

%inst
Xgr[ðì¬µÜ·B
Xgr[ÍAExplorerÌE¤É élÈIuWFNgÅ·B
±Ì½ßðÄÑoµ½ãAstatÉXgr[ÌIDªãü³êÜ·B
^p
X^C
X^CÍÈºÌlð«µÄA¡ÌX^Cðwè·é±ÆªÅ«Ü·B
0           å«¢ACR\¦
1           Ú×\¦
2           ¬³¢ACR\¦
3           Xg\¦
4           ¡IðÅ«È¢æ¤É·é
8           listviewªIð³êÄ¢È¢Æ«ÅàAIð³êÄ¢éACeÌFðÏ¦é
$10         ¸ÅACeð\[g·é
$20         ~ÅACeð\[g·é
$40         Zbgµ½C[WXgðlistviewÁÉÁµÈ¢(¡ÌlistviewÅ¯¶C[Wðg¤êÉwè·é)
$80         ACR\¦ÌÆ«AACeÌeLXgðÜèÔ³È¢(ftHgÅÍeLXgÍ·¢ÆÜèÔ³êé)
$100        ?
$800        ?
$2000       XN[o[ªÂ©È¢
$4000       Ì¼Oð\¦·éªðt¯È¢
^
ÈºÌX^CÍcomctl32.dllÌo[WÉæÁÄÍLøÉÈçÈ¢êª èÜ·B
$10000      Xg\¦Érüðt¯é
$40000      `FbN{bNXðt¯é
$100000     Ì¼Oð\¦·éðhbO&hbvÅ«é
$200000     Xg\¦ÉACeªIð³ê½Æ«TuACeàFðÏ¦é
$400000     ACeÌãÉ}EX|C^ª½Æ«J[\ðwÌ`É·é
$800000     ACeNbN³ê½Æ«J[\ðwÌ`É·é
$1000000    XN[o[ð½çÈX^CÉÏ¦é
$8000000    $400000,$800000ÌX^Cðwèµ½Æ«AACeÌãÉ}EX|C^ªéÆºüªÂ­
$10000000   $400000,$800000ÌX^Cðwèµ½Æ«AºüªÂ­
^p
^
¦`FbN{bNXðt¯½Æ«ÌX^CÅAACeª`FbN³êÄ¢é©ð²×éÆ«ÍÈºÌæ¤ÉµÄ­¾³¢
^
	;list_id : listviewÌID
	;idx : ACeÌCfbNX
	prm=list_id,4140,idx,61440
	sendmsg prm
	chk=stat>>12-1
	if chk : dialog ""+idx+"ÔÚÌACeÍ`FbN³êÄ¢Ü·"
^
`FbNðÍ¸µ½èAÂ¯½èµ½¢Æ«ÍÈºÌæ¤ÉµÜ·B
^
	dim lvi,9
	idx = 0			;idxÔÚÌACe
	if uncheck != 0 {
		lvi = 8,0,0,1<<12,$f000
	} else {
		lvi = 8,0,0,2<<12,$f000
	}
	prm = list_id,4139,idx : getptr prm.3,lvi : sendmsg prm
^
¦listviewÍHSPW½ßÌclsâscreen½ßÅÍÁ³êÜ¹ñB_clsÜ½Í_clrobjðgpµÄ­¾³¢B

%href
listadd
listdel
listaddcl
listdelcl
listsel
listget
listmax
listicon
listhit
sel_listview




%index
listadd
Xgr[ÉACeðÇÁ
%group
IuWFNg§ä½ß
%prm
n1,"s2",n3,n4,n5,n6
n1 : ACeÌÊu
s2 : ACeÌeLXg
n3 : ÌÔ
n4 : ACRÔ
n5 : ACeÌóÔ
n6 : ACeÉ½¹él

%inst
Xgr[Ìn1ÔÚÌÊuÉACeðÂ¯Á¦Ü·B
n3ÉÍ½ÔÚÌÉÇÁ·é©ðwè·éCfbNXAn4ÉÍACRÔAn5ÉÍACeÌóÔðüêÜ·B
^
ÖÌÇÁÍAlistaddclÅðÇÁµÄ¢éÆ«ÌÝLøÅ·B
Ü½ACRÔÍAlisticonÅACRðÇÁµÄ¢éêÌÝLøÉÈèAÖÇÁ·éÆ«ÍACRÔÍ³³êÜ·B
^
n6ÉlðüêÄACeÉ»Ìlð½¹é±ÆªÅ«Ü·B
±Ì½ßðÄÑoµ½ãAstatÉÇÁµ½ACeÌCfbNXªãü³êÜ·B(-1ÈçG[)
^
ACeÌóÔ
listviewÌACeÌóÔÉÍAÈºÌàÌª èÜ·B
^p
óÔ                     l
tH[JXª ÁÄ¢é   1
Ið³êÄ¢é           2
Øèæçê½óÔ         4
nCCg               8
^p
¦nCCgÍlistselÅIðóÔððµÈ¢Æ³ÉßèÜ¹ñB

%href
listdel
listsel
listaddcl
listdelcl
listview
%sample
listadd 3,"new item",0,15
^
listadd 0,"new sub item",1,0,1




%index
listdel
Xgr[ÌACeðÁ
%group
IuWFNg§ä½ß
%prm
n1
n1 : ACeÌCfbNX

%inst
n1ÔÚÌACeðÁµÜ·B
n1ð-1É·éÆSÄÌACeðÁµÜ·B

%href
listadd
listview




%index
listaddcl
Xgr[ÉðÇÁ
%group
IuWFNg§ä½ß
%prm
n1,"s2",n3,n4
n1 : ÌCfbNX
s2 : Ì¼O
n3 : Ì
n4 : Ì¼OÌÊu

%inst
ðÇÁµÜ·B
n3ðÈªµ½Æ«ÌftHglÍ100Å·B
^
^p
n4Ìl
0    ¶ñ¹
1    Eñ¹
2    

%href
listdelcl
listview




%index
listdelcl
ðÁ
%group
IuWFNg§ä½ß
%prm
n1
n1 : ÌCfbNX

%inst
n1ÔÚÌðÁµÜ·B

%href
listaddcl
listview




%index
listsel
Xgr[ÌACeðIð
%group
IuWFNg§ä½ß
%prm
n1,n2
n1 : ACeÌCfbNX
n2 : IðóÔÌ^Cv

%inst
n1ÔÚÌACeðIðµÜ·B
n2ð-1É·éÆIðóÔððµÜ·B
n2ðÈª·éÆtH[JXð í¹ÄAIðóÔÉµÜ·B
^
^p
óÔ                     l
tH[JXª ÁÄ¢é   1
Ið³êÄ¢é           2
Øèæçê½óÔ         4
nCCg               8
^p

%href
listadd
listview




%index
listget
Xgr[ÌACeðæ¾
%group
IuWFNg§ä½ß
%prm
v1,n2,n3,n4
v1 : æ¾µ½àÌðüêéÏ
n2 : ACeÌCfbNX
n3 : æ¾·éàÌ
n4 : æ¾·éACeÌóÔ

%inst
åÉACeÌCfbNXðæ¾µÜ·B
n3ÅÈºÌlðãü·éÆæ¾·éàÌªÏíÁÄ«Ü·B
^
^p
n3Ìl                               n4Ìl
1   n2ÌãÌACeÌindexðæ¾    0 or æ¾·éACeÌóÔ
2   n2ÌºÌACeÌindexðæ¾    0 or æ¾·éACeÌóÔ
3   n2Ì¶ÌACeÌindexðæ¾    0 or æ¾·éACeÌóÔ
4   n2ÌEÌACeÌindexðæ¾    0 or æ¾·éACeÌóÔ
5   n2ÌeLXgæ¾                 ÏÌTCY or -1
6   n2ÌACeÉ½¹½lðæ¾   0 or 1
^p
^
n3ð5Éµ½Æ«ÍstatÉACeÉ½¹½lªüèÜ·B
n3ð5Éµ½Æ«n4ð-1É·éÆAv1ÉüÁÄ¢é¶ñðgÁÄACeÌeLXgðÄÝèÅ«Ü·B
n3ð6Éµ½Æ«n4ð1É·éÆAv1ÉüÁÄ¢élðgÁÄACeÉ½¹½lðÄÝèÅ«Ü·B
^
n4ðÈºÌlÉ·éÆn4Åwèµ½óÔÌACeð(n2+1)ÔÚÌACe©çn3Åwèµ½ûüÉü©ÁÄõµÜ·B(n3ð0É·éÆûüÍwèµÜ¹ñ)
n4ÌóÔÌACeª©Â©êÎv1ÉACeÌCfbNXªãü³êÜ·B
©Â©çÈ©Á½êÍv1É-1ªãü³êÜ·B
n2ð-1É·éÆæªÌACe©çõµÜ·B
^
^p
n4Ìl
0    óÔÍwèµÈ¢
1    tH[JXª ÁÄ¢é
2    Ið³êÄ¢é
4    Øèæçê½óÔ
8    nCCg
^p

%href
listadd
listview

%sample
	#include "llmod3.hsp"
	#include "listview.hsp"
	listview winx-6,winy/2,1
	lv=stat
	listaddcl 0,"name"
	repeat 30 : listadd cnt,"ACe No."+cnt : loop
	button "check",*check
	alloc bf,1024*32 : bf=""
	mesbox bf,winx-6,winy-csry-26
	_objsel lv
	stop
*check
	bf="" : notesel bf : start=-1	;æª©çõ
	repeat -1
		listget chk,start,0,2	;IðóÔÌACeðT·
		if chk=-1 : break	;©Â©çÈ¢ê-1ªãü³êé
		listget s,chk,5		;©Â©Á½ACeÌeLXgðæ¾
		noteadd s+"ÍIð³êÄ¢Ü·"
		start=chk
	loop
	objprm 1,bf
	stop




%index
listicon
Xgr[ÌACRðÝè
%group
IuWFNg§ä½ß
%prm
v1,n2,n3
v1 : ACRªüÁ½lÏ(get_iconÅæ¾µ½àÌ)
n2 : ACRÌ
n3 : Zbg·éACRÌå¬
%inst
Xgr[ÌACeÌACRðÝèµÜ·B
ACRðZbg·éÉÍAimgW[ªKvÅ·B
^
¦K¸Alistview.hspæèæÉimg.hspðCN[hµÄ­¾³¢B
^
n3ð0É·éÆå«¢ACRð\¦·éÆ«ÌACRðZbgµAn3ð1É·éÆ¬³¢ACRð\¦·éÆ«ÌACRðZbgµÜ·B
^
±Ì½ßðÄÑoµ½ãAÌstatÉZbgµ½ACRÉÂ¢ÄÌîñªüÁ½ÁÊÈlªãü³êÜ·B(C[WXgÆÄÎêéàÌÅ·B)
^
listviewÍtreeboxÆáÁÄA_clrobjÈÇÅlistviewªÁ³êéÆAACRðZbgµÄÁïµ½ð©®IÉJú·éÌÅA
	destroy_imglist 'listiconÀsãÉstatÉãü³ê½l'
ðÀs·éKvÍ èÜ¹ñB
½¾µAlistviewÌX^CÉ'Zbgµ½C[WXgðlistviewÁÉÁµÈ¢'ðwèµÄ¢éêÍAÍ©®IÉJú³êÜ¹ñB±ÌÆ«ÍA
	destroy_imglist 'listiconÀsãÉstatÉãü³ê½l'
ðÀsµÄ­¾³¢B

%href
listadd
listview

%sample
	#include "llmod3.hsp"
	#include "img.hsp"	;listiconðg¤ÍKv(listview.hspæèOÉ)
	#include "listview.hsp"
	;Ü¸Xgr[ðì¬
	listview 300,200,1|2|4|$20
^
	;shell32.dllÌ3ÔÚÆ4ÔÚÌACR(¬³¢û)ðg¤
	;(*get_iconÉÂ¢ÄÍimg.hspÌà¾ðÇñÅ­¾³¢B)
	filename="shell32.dll"
	get_icon icons.0,filename,3,1
	get_icon icons.1,filename,4,1
^
	listicon icons,2
	img_id=stat	;Zbgµ½ACRÉÂ¢ÄÌîñªüÁ½ÁÊÈl
^
	;ACeðÇÁ
	;0sÚÌ0ÔÚÌÉACRÔ1ÌACRðt¯½ACeðÇÁ
	listadd 0,"folder 1",0,1
	itm1=stat




%index
listmax
Xgr[ÌACeÌðæ¾
%group
IuWFNg§ä½ß
%prm
v1,n2
v1 : Xgr[àÌACeÌðüêélÏ
n2 : tO

%inst
Xgr[àÌACeÌðæ¾µÜ·B
n2ð1É·éÆXgr[àÉ®SÉ©¦Ä¢éACeÌðæ¾µÜ·B

%href
listview




%index
listhit
}EXÌºÉ éACeðæ¾
%group
IuWFNg§ä½ß
%inst
}EXÌºÉ éACeÌCfbNXðæ¾µÜ·B
^
statÉ}EXÌºÉ éACeÌCfbNXªãü³êÜ·B
}EXÌºÉACeª³¯êÎ-1ªãü³êÜ·B

%href
listadd
listview




%index
sel_listview
ì·éXgr[ðIð
%group
IuWFNg§ä½ß
%prm
n1
n1 : Xgr[ÌID

%inst
±Ì½ßgpãÍn1Åwèµ½Xgr[ÉÎµÄeìðs¢Ü·B
Xgr[VKÉì¬·éÆA©®IÉ»ÌXgr[ªeìÌÎÛÉÈèÜ·B
¡ÌXgr[ðì¬µ½Æ«ÍA±Ì½ßÅì·éXgr[ðIðµÄ­¾³¢B

%href
listview


%index
progbox
vOX{bNXÌì¬
%group
g£üoÍ§ä½ß
%prm
n1,n2,n3
n1 : 
n2 : ³
n3 : X^C

%inst
vOX{bNXðì¬µÜ·B
vOX{bNXÍAi»óµð\¦·éÌÉÖÅ·B
^
X^C(comctl32.dllÌo[Wª4.70ÈãÅÈ¯êÎ³øÅ·)
^p
n4Ìl
1    iÝûªX[YÉÈèÜ·B
4    ¼ÉÚ·èªiÝÜ·B
^p
±Ì½ßðÄÑoµ½ãAstatÉvOX{bNXÌIDªãü³êÜ·B
^
¦progboxÍHSPW½ßÌclsâscreen½ßÅÍÁ³êÜ¹ñB_clsÜ½Í_clrobjðgpµÄ­¾³¢B

%href
progbox
progrng
progset
sel_progbox




%index
sel_progbox
ì·évOX{bNXðIð
%group
IuWFNg§ä½ß
%prm
n1
n1 : vOX{bNXÌID
%inst
±Ì½ßgpãÍn1Åwèµ½vOX{bNXÉÎµÄeìðs¢Ü·B
vOX{bNXVKÉì¬·éÆA©®IÉ»ÌvOX{bNXªeìÌÎÛÉÈèÜ·B
¡ÌvOX{bNXðì¬µ½Æ«ÍA±Ì½ßÅì·évOX{bNXðIðµÄ­¾³¢B

%href
progbox



%index
progrng
vOX{bNXÌÍÍðÝè
%group
IuWFNg§ä½ß
%prm
n1,n2,n3
n1 : Å¬l
n2 : Åål
n3 : ÅålÌg£tO

%inst
vOX{bNXÌÍÍÌÝèðµÜ·B
ÝèÅ«élÍAÅ¬lª0ÈãAÅålÍ65535ÈºÅ·B
n3É1ðãü·éÆÅålª$ffffffffÜÅÉÈèÜ·B½¾µ±ÌÝèÍcomctl32.dllÌo[Wª4.70ÈãÅÈ¯êÎ³øÅ·B
^
±Ì½ßðÄÑoµ½ãÌstatÌl
ÈOZbgµÄ¢½ÍÍ [ Å¬l | (Åål<<16)]Ì`® (n3=0ÌÆ«ÌÝ)

%href
progbox



%index
progset
vOX{bNXÌeÝè
%group
IuWFNg§ä½ß
%prm
n1,n2
n1 : Zbg·él
n2 : Zbg·é^Cv

%inst
vOX{bNXÌeÝèðs¢Ü·B
Zbg·é^CvÍÈºÌÊèÅ·B
^p
ÚI                 n1Ìl          n2Ìl   progsetÀsãÌstatÌl
iÜ¹é             0               0        iÜ¹éOÌÊu
iÜ¹éÊÌZbg   iÜ¹éÊ      0        ÈOZbgµ½iÜ¹éÊ
ÊuðZbg         Zbg·éÊu  1        Zbg·éOÌÊu
ÁèÌÊðÁ³¹é Á³¹éÊ    2        Á³¹éOÌÊu
^
(ÈºÌàÌÍcomctl32.dllÌo[Wª4.70ÈãÅÈ¯êÎ³øÅ·)
Ú·èÌF           F              3        Zbg·éOÌF
Ú·èÌãëÌF     F              4        Zbg·éOÌF
(FÍ   r|(g<<8)|(g<<16)   Ì`®)
(lª 0 ÉÈÁÄ¢éÍÈªÅ«é)
^p
statÌlª'Zbg·éOÌF'ÆÈÁÄ¢éÍAZbg·éOÌFªVXeÌftHgÌF¾Á½ê -16777216($ff000000)ªstatÉãü³êÜ·BÜ½AFðZbg·éÆ«É$ff000000ðg¤ÆVXeÌftHgÌFÉÝèÅ«Ü·B

%href
progrng
progbox
%sample
	progbox 300,20		;300,³20ÌvOX{bNXðìé
	progrng 0,200		;ÍÍÍ0©ç200
^
*lp
	progset			;Ú·èðiÜ¹é
		;
		;
	goto lp


%index
trackbox
gbN{bNXÌì¬
%group
½ßTv
%prm
n1,n2,n3
n1 : 
n2 : ³
n3 : X^C

%inst
gbN{bNXðì¬µÜ·B
gbN{bNXÆÍÂÜÝðÁ½IuWFNgÅ·B
ÜÁ½IðÍÍÌ©çlð¾½¢Æ«ÈÇÉg¤ÌÉÖÅ·B
^
±Ì½ßðÄÑoµ½ãAstatÉgbN{bNXÌIDªãü³êÜ·B
^
trackboxÌX^C(n4)ÍÈºÌlðgÝí¹ÄÂ±ÆªÅ«Ü·B
á¦ÎA
	n4=2|8|$100	;Ü½Í n4=2+8+$100
	trackbox 200,70,n4
Èç¼Å¼¤ÉÚ·èªt«Ac[`bvðÂX^CÉÈèÜ·B
^p
n4Ìl
0       ½
1       ©®ÅÚ·èðt¯é
2       ¼
4       '½'ÌÆ«  Ú·èðã¤Ét¯é
        '¼'ÌÆ«  Ú·èð¶¤Ét¯é
8       Ú·èð¼¤Ét¯é
$10     Ú·èðt¯È¢
$20     ÂÜÝÌªÉIðÌæðt¯é
$40     $20 ÌX^CÌÆ«AÂÜÝª®¢ÄàIðÌæðÅèµ½ÜÜÉ·é
$80     ÂÜÝÈµ
$100    ÂÜÝªNbN³êÄ¢éÆ«c[`bvðt¯é(±ÌX^CÍ
        comctl32.dllÌo[WÉæÁÄÍøÊªÈ¢êª èÜ·B)
^p
^
¦trackboxÍHSPW½ßÌclsâscreen½ßÅÍÁ³êÜ¹ñB_clsÜ½Í_clrobjðgpµÄ­¾³¢B

%href
trackpos
trackrng
trackmrk
tracksel
sel_trackbox




%index
sel_trackbox
ì·égbN{bNXðIð
%group
½ßTv
%prm
n1
n1 : gbN{bNXÌID
%inst
±Ì½ßgpãÍn1Åwèµ½gbN{bNXÉÎµÄeìðs¢Ü·B
gbN{bNXVKÉì¬·éÆA©®IÉ»ÌgbN{bNXªeìÌÎÛÉÈèÜ·B
¡ÌgbN{bNXðì¬µ½Æ«ÍA±Ì½ßÅì·égbN{bNXðIðµÄ­¾³¢B

%href
trackbox



%index
trackpos
gbN{bNXÌÂÜÝÌÊuÌÝèÆæ¾
%group
½ßTv
%prm
n1,n2
n1 : Ýè·éÊu
n2 : Êuðæ¾·étO

%inst
gbN{bNXÌÂÜÝÌÊuðÝèµÜ·B
n2ð1É·éÆÂÜÝÌÊuðæ¾µÜ·B
^
±Ì½ßðÄÑoµ½ãÌstatÌl
n2ð1É·éÆstatÉÂÜÝÌÊuªãü³êÜ·B
»êÈOÍstatÍ0ÉÈèÜ·B

%href
trackrng
trackbox



%index
trackrng
gbN{bNXÌÍÍÌÝèÆæ¾
%group
½ßTv
%prm
n1,n2,n3
n1 : Å¬l
n2 : Åål
n3 : ÍÍðæ¾·étO

%inst
gbN{bNXÌÍÍðÝèAæ¾µÜ·B
n3ð1É·éÆÝèÍÍÌlðæ¾µÜ·B
^
±Ì½ßðÄÑoµ½ãÌstatÌl
n3ð1ÉµÄAn1ð1É·éÆtrackboxÌÅ¬ÊuAn2ð1É·éÆÅåÊuªstatÉãü³êÜ·B
»êÈOÍstatÍ0ÉÈèÜ·B

%href
trackpos
trackbox



%index
trackmrk
gbN{bNXÌÚ·èÌÝèÆæ¾
%group
½ßTv
%prm
n1,n2
n1 : Ú·èðÂ¯éÊu
n2 : tO

%inst
gbN{bNXÌÚ·èÌÊuðÝèAæ¾µÜ·B
^
n2Ìl  @\
0       n1Åwèµ½ÊuÉÚ·èðt¯Ü·B
1       t¯çêÄ¢éÚ·èÌðæ¾µÜ·B
2       Ôuðn1Åwèµ½lÉµÄÚ·èt¯Ü·B½¾µAgbN{bNXÌX^Cð'©®ÅÚ·èðt¯é'(1)Éµ½Æ«ÌÝLøÅ·B
3       n1ÔÚÌÚ·èÌÊuðæ¾µÜ·B
4       t¯çêÄ¢éÚ·èð·×ÄNAµÜ·B

%href
trackbox




%index
tracksel
gbN{bNXÌIðÍÍÌÝèÆæ¾
%group
½ßTv
%prm
n1,n2,n3
n1 : Å¬l
n2 : Åål
n3 : tO

%inst
gbN{bNXÌIðÍÍðÝèAæ¾µÜ·B
½¾µAgbN{bNXì¬É'ÂÜÝÌªÉIðÌæðt¯é'($20)Æ¢¤
X^CðwèµÄ¢éêÉÀèÜ·B
^p
n3ð0É·éÆn1-n2ÌÍÍðIðµÜ·B
n3ð1É·éÆJnÊu(n1Ìl)ÌÝðZbgµÜ·B
n3ð2É·éÆI¹Êu(n2Ìl)ÌÝðZbgµÜ·B
n3ð3É·éÆIðÍÍðNAµÜ·B
^p
±Ì½ßðÄÑoµ½ãÌstatÌl
n1An2ðÆàÉ0·éÆIðJnÊuªstatÉãü³êÜ·B
n1An2ðÆàÉ1·éÆIðI¹ÊuªstatÉãü³êÜ·B

%href
trackbox


%index
treemax
c[{bNXÌACeÌðæ¾
%group
IuWFNg§ä½ß
%prm
v1,n2
v1 : c[{bNXàÌACeÌðüêélÏ
n2 : tO

%inst
c[{bNXàÌACeÌðæ¾µÜ·B
n2ð1É·éÆc[{bNXàÉ®SÉ©¦Ä¢éACeÌðæ¾µÜ·B

%href
treebox



%index
treesel
c[{bNXÌACeðIð
%group
IuWFNg§ä½ß
%prm
n1,n2
n1 : ACeÌID
n2 : IðóÔÌ^Cv

%inst
n1Åwèµ½ACeðIðµÜ·B
n2É$10ð«·ÆACeªqðàÁÄ¢éÆ«A»ÌACeðûkµÜ·B
n2É$20ð«·ÆACeªqðàÁÄ¢éÆ«A»ÌACeðWJµÜ·B
^
^p
n2Ìl   IðóÔ
0        ÊÌ^Cv
1        DragDropÌtargetÌæ¤È^Cv
2        itemðæªÉÁÄ¢ÁÄIð(ÆÌÂ«ÅÍÈçÈ¢æ¤È... tom)
+$10     WJ
+$20     ûk
+$30     tÌóÔÉ·é
^p

%href
treebox
treeadd




%index
treedel
c[{bNXÌACeðÁ
%group
IuWFNg§ä½ß
%prm
n1
n1 : ACeÌID

%inst
n1Åwèµ½ACeðÁµÜ·B

%href
treeadd
treebox




%index
treesort
c[{bNXÌACeð\[g
%group
IuWFNg§ä½ß
%prm
n1
n1 : ACeÌID

%inst
n1Åwèµ½ACeÌqð\[gµÜ·B
n1ðÈª·éÆgbvÌACeð\[gµÜ·B

%href
treeadd
treebox



%index
treeicon
c[{bNXÌACRðÝè
%group
IuWFNg§ä½ß
%prm
v1,n2
v1 : ACRªüÁ½lÏ(get_iconÅæ¾µ½àÌ)
n2 : ACRÌ

%inst
c[{bNXÌACeÌACRðÝèµÜ·B
ACRðZbg·éÉÍAimgW[ªKvÅ·B
^
¦K¸Atreebox.hspæèæÉimg.hspðCN[hµÄ­¾³¢B
^
±Ì½ßÀsãÉstatÉZbgµ½ACRÉÂ¢ÄÌîñªüÁ½ÁÊÈlªÔ³êÜ·B(C[WXgÆÄÎêéàÌÅ·B)
treeboxª¢çÈ­ÈÁÄtreeboxðÁµ½Æ«ÍÈé×­
	destroy_imglist 'treeiconÀsãÉstatÉãü³ê½l'
ðÀsµÄ­¾³¢B
(ACRðZbg·éÆðÁïµÜ·Bdestroy_imglistðÀs·é±ÆÅZbgµÄÁïµ½ðJúµÜ·B)
treeboxªÜ¾ é¤¿Édestroy_imglistðÀs·éÆAZbg³ê½ACRÍ³øÉÈèÜ·B

%href
treeadd
treebox
%sample
#include "llmod3.hsp"
#include "img.hsp"	;treeiconðg¤ÍKv(treebox.hspæèOÉ)
#include "treebox.hsp"
^
treebox 300,200,1|2|4|$20
^
filename="shell32.dll"
get_icon icons.0,filename,3,1
get_icon icons.1,filename,4,1
treeicon icons,2
img_id=stat	;Zbgµ½ACRÉÂ¢ÄÌîñªüÁ½ÁÊÈl
^
treeadd 0,"folder 1",,0,1
itm1=stat




%index
treehit
}EXÌºÉ éACeðæ¾
%group
IuWFNg§ä½ß
%inst
}EXÌºÉ éACeÌIDðæ¾µÜ·B
^
statÉ}EXÌºÉ éACeÌIDªãü³êÜ·B
}EXÌºÉACeª³¯êÎ0ªãü³êÜ·B

%href
treebox



%index
sel_treebox
ì·éc[{bNXðIð
%group
IuWFNg§ä½ß
%prm
n1
n1 : c[{bNXÌID

%inst
±Ì½ßgpãÍn1Åwèµ½c[{bNXÉÎµÄeìðs¢Ü·B
VKÉc[{bNXðì¬·éÆA©®IÉ»Ìc[{bNXªeìÌÎÛÉÈèÜ·B
¡Ìc[{bNXðì¬µ½Æ«ÍA±Ì½ßÅì·éc[{bNXðIðµÄ­¾³¢B

%href
treebox




%index
treeget
c[{bNXÌeîñðæ¾
%group
IuWFNg§ä½ß
%prm
v1,n2,n3,n4
v1 : æ¾µ½àÌðüêéÏ
n2 : æ¾·é^Cv
n3 : n2ÉæÁÄÏíé
n4 : n2ÉæÁÄÏíé

%inst
åÉACeÌIDðæ¾µÜ·B
n2ÅÈºÌlðãü·éÆæ¾·éàÌªÏíÁÄ«Ü·B
^
^p
n2Ìl                               n3Ìl        n4Ìl
0   Ið³êÄ¢é±²ÃÑÌIDðæ¾     0             0
1   Ì±²ÃÑÌID(¯¶x)ðæ¾   ACeÌID  0
2   OÌ±²ÃÑÌID(¯¶x)ðæ¾   ACeÌID  0
3   e±²ÃÑÌIDðæ¾                 ACeÌID  0
4   êÔÚÌqÇà±²ÃÑÌIDðæ¾     ACeÌID  0
5   ÅÉ©¦Ä¢é±²ÃÑÌIDðæ¾   ACeÌID  0
6   ACeÌeLXgæ¾           ACeÌID  ÏÌTCY or -1
7   ACeÉ½¹½lðæ¾       ACeÌID  0 or 1
-1  [gðæ¾                     0             0
^p
^
lª0ÌÍÈªÅ«Ü·B
n2ª6ÌêAn4É½¶ÜÅæ¾·é©wèµÜ·B63¶ÈàÈçÈªÅ«Ü·B
n2ª6ÌÆ«ÍstatÉtreeaddÅACeÉ½¹½lªãü³êÜ·B
^
n2ð6Éµ½Æ«n4ð-1É·éÆAv1ÉüÁÄ¢é¶ñðgÁÄACeÌeLXgðÄÝèÅ«Ü·B
n2ð7Éµ½Æ«n4ð1É·éÆAv1ÉüÁÄ¢élðgÁÄACeÉ½¹½lðÄÝèÅ«Ü·B

%href
treeadd
treebox



%index
treeadd
treeboxÉACeðÇÁ
%group
IuWFNg§ä½ß
%prm
n1,"s2",n3,n4,n5,n6
n1 : eACeÌID
s2 : ACeÌeLXg
n3 : ACeÌÇÁÌdû
n4 : ACeªûkµÄ¢éÌACRÔ
n5 : ACeªWJµÄ¢éÌACRÔ
n6 : ACeÉ½¹él

%inst
c[{bNXÉn1ðeÉµÄACeðÁ¦Ü·B
n1É0ðãü·éÆêÔÚÌACeÉÈèÜ·B
n3ÉÍÇÌæ¤ÉACeðÇÁ·é©An4ÉÍûkµÄ¢éÌACRÔ(0©ç)An5ÉÍWJµÄ¢éÆ«ÌACRÔ(0©ç)ðüêÜ·B
^
ÇÌæ¤ÉÇÁ·é©ÍA1ÅæªÌqÆµÄÇÁA0Ü½Í2ÅêÔÅãÌqÆµÄÇÁA3Å\[gµÄÇÁAÆÈèÜ·B
ACRÍtreeiconÅZbgµÜ·B
^
n6ÉlðüêÄACeÉ»Ìlð½¹é±ÆªÅ«Ü·B
n6ÅÝèµ½lÍtreegetÅæ¾Å«Ü·B
^
±Ì½ßðÄÑoµ½ãAstatÉÇÁµ½ACeÌIDªãü³êÜ·B(0ÈçG[)

%href
treedel
treeicon
treeget
treesel
treebox

%sample
treeadd itm3,"new item",3,0,1
new_itm_id=stat




%index
treebox
treeboxÌì¬
%group
IuWFNg§ä½ß
%prm
n1,n2,n3
n1 : 
n2 : ³
n3 : X^C

%inst
c[{bNXðì¬µÜ·B
c[{bNXÆÍGNXv[[Ì¶¤É éæ¤ÈàÌÅ·B
X^CÍÈºÌlðgÝí¹Äg¤±ÆªÅ«Ü·B
^p
n3Ìl
1       ACeªqðÂÆ«'+','-'Ì}[Nªt­
2       ACeÆACeðq®üªÂ­
4       ÅÌACeÉüªt­(2ªwè³êÄ¢éÆ«ÌÝ)
8       ¦±ÌÍgíÈ¢Åº³¢B
$10     ¦±ÌÍgíÈ¢Åº³¢B
$20     c[{bNXªIð³êÄ¢È¢Æ«ÉàIð³êÄ¢éACeªª©éæ¤ÉFªt­
$40     ¦æ­ª©çÈ¢(tom)
$80     ACeªc[{bNX©çÍÝoÄ¢Äàc[`bvªÂ©È¢
¦ÈºÌX^CÍcomctl32.dllÌo[WÉæÁÄÍgpÅ«È¢àÌà èÜ·B
$100    ÚÉ`FbN{bNXªt­
$200    }EXªACeÌãÉéÆºüªt­
$400    }EXÅNbN³ê½ACeÌÝªWJ³êé
$800    ¦æ­ª©çÈ¢(tom)
$1000   X^C2 ªwè³êÄ¢È¢Æ«AIð³ê½ACeÌwiªÏíé
$2000   ACeªc[{bNXàÉûÜçÈ¢ÅàAXN[o[ªt©È¢
$4000   ¦æ­ª©çÈ¢(tom)
$8000   ½XN[o[ªt©È¢
^p
^
±Ì½ßðÄÑoµ½ãAstatÉc[{bNXÌIDªãü³êÜ·B
^
¦treeboxÍHSPW½ßÌclsâscreen½ßÅÍÁ³êÜ¹ñB_clsÜ½Í_clrobjðgpµÄ­¾³¢B

%href
treeadd
treedel
treesel
treeget
treemax
treesort
treeicon
treehit
sel_treebox


%index
udbtn
Abv_E{^Ìì¬
%group
½ßTv
%prm
n1,n2,n3,n4
n1 : 
n2 : ³
n3 : X^C
n4 : Abv_E{^ðt¯éIuWFNgÌID

%inst
Abv_E{^ðì¬µÜ·B
Abv_E{^ÆÍîó{^ðÁ½IuWFNgÅ·B
inputÌüÍ{bNX©çlð¾½¢Æ«ÈÇÉg¤ÆÖÅ·B
(êbuttonÉàt¯é±ÆÍÅ«Ü·B)
n4ÉÍbuttonÈÇÌIuWFNgÌIDðüêÜ·B
^
±Ì½ßðÄÑoµ½ãAstatÉAbv_E{^ÌIDªãü³êÜ·B

udbtnÌX^C(n4)ÍÈºÌlðgÝí¹ÄÂ±ÆªÅ«Ü·B
^p
n4Ìl  X^C
1       Å¬AÅålÉBµ½Æ«ÉÜèÔ·
4       IuWFNgÌE¤Ét¯é
8       IuWFNgÌ¶¤Ét¯é
$20     ûüL[ÅlðÏ¦çêéæ¤É·é
$40     ½^Cv
$80     ðJ}ÅæØçÈ¢
^
¦udbtnÍHSPW½ßÌclsâscreen½ßÅÍÁ³êÜ¹ñB_clsÜ½Í_clrobjðgpµÄ­¾³¢B

%href
udset
udget
sel_udbtn




%index
sel_udbtn
ì·éAbv_E{^ÌIð
%group
½ßTv
%prm
n1
n1 : Abv_E{^ÌID
%inst
±Ì½ßgpãÍn1Åwèµ½Abv_E{^ÉÎµÄeìðs¢Ü·B
Abv_E{^VKÉì¬·éÆA©®IÉ»ÌAbv_E{^ªeìÌÎÛÉÈèÜ·B
¡ÌAbv_E{^ðì¬µ½Æ«ÍA±Ì½ßÅì·éAbv_E{bNXðIðµÄ­¾³¢B

%href
udbtn



%index
udset
Abv_E{^ÌÝè
%group
½ßTv
%prm
n1,n2,n3
n1 : Zbg·é^Cv
n2 : n1ÉæÁÄÏíé
n3 : n1ÉæÁÄÏíé

%inst
Abv_E{^ÌÝèðµÜ·B
Ýè·éàÌÍn1ÌlÉæÁÄÙÈèÜ·B
^p
n1Ìl
0       Abv_E{^ÌèðÝèµÜ·B
       n2ÉIuWFNgÌIDðwèµÜ·B
^
1       Abv_E{^ÌÍÍðÝèµÜ·B
       n2ÉÅ¬l(0©ç$7FFFÜÅ),n3ÉÅål(0©ç$7FFFÜÅ)ðwèµÜ·B
^
2       Abv_E{^ÌÊuðÝèµÜ·B
       n2ÉAbv_E{^ÌÊuðwèµÜ·B
^
3       Abv_E{^Ìlð16iÅ\¦µÜ·B
       n2ðÈª·éÆ16iÉÈèA0ÈOÌlðüêéÆ10iÉßèÜ·B
^
4       Abv_E{^ÌÁÊðÏ»³¹éÔðÝèµÜ·B
       n2ÉÝè·éAn3ÉÝè·éÔAÁÊªüÁ½lÏÌ|C^ðwèµÜ·B
	(á)
		udbtn 100,100
		;ÅÍ1¸ÂA3bãÉ10¸ÂA6bãÉ50¸ÂÁ³¹éæ¤É·é
		a=0,1,	3,10,  6,50
		getptr p,a
		udset 4,3,p		;Ýè·éÔÍ3Â
^p
±Ì½ßðÄÑoµ½ãÌstatÌl
n1Ìl    statÌl
 0        Zbg·éOÌèÌID
 1        0
 2        Zbg·éOÌÊu
 3        Zbg·éOÌ\¦^Cv
 4        Zbgª¬÷µ½êÍ1A¸sµ½êÍ0

%href
udget
udbtn



%index
udget
Abv_E{^ÌeíîñÌæ¾
%group
½ßTv
%prm
n1
n1 : æ¾·é^Cv
%inst
Abv_E{^Ìeíîñðæ¾µÜ·B
æ¾·éàÌÍn1ÌlÉæÁÄÙÈèÜ·B
eîñÍstatÉãü³êÜ·B
^p
n1Ìl
0       Abv_E{^Ìèðæ¾µÜ·B
1       Abv_E{^ÌÍÍðæ¾µÜ·B
       statÌlÍ ' Å¬l | (Åål<<16) ' Ì`®ÉÈÁÄ¢Ü·B
2       Abv_E{^ÌÊuðæ¾µÜ·B
3       Abv_E{^ÌlÌ\¦Ìdûðæ¾µÜ·B
^p
%href
udset
udbtn


