12-22-2010, 02:09 AM
Hi Gintaras
Im adding the Listitems of my YahooMessanger to the SysTreeView32 Control of my Dialog ( + Checkbox for each item)
Function Dialog5
Function TvAddItems
Could you please help me to make a function that will get the checked items and save their names in a notepad?
Thank you
Im adding the Listitems of my YahooMessanger to the SysTreeView32 Control of my Dialog ( + Checkbox for each item)
Function Dialog5
\Dialog_Editor
function# hDlg message wParam lParam
if(hDlg) goto messages
if(!ShowDialog("Dialog5" &Dialog5 0)) ret
;BEGIN DIALOG
;0 "" 0x90C80A44 0x100 0 0 223 184 "Dialog"
;3 SysTreeView32 0x54030000 0x0 2 2 164 178 ""
;4 Button 0x54032000 0x0 172 6 48 14 "Refresh"
;5 Button 0x54032000 0x0 172 30 48 16 "Save"
;END DIALOG
;DIALOG EDITOR: "" 0x2030208 "*" "" ""
ret
;messages
sel message
,case WM_INITDIALOG
,TvAddItems id(3 hDlg)
,case WM_DESTROY
,case WM_COMMAND goto messages2
ret
;messages2
sel wParam
,case 4 TvAddItems id(3 hDlg)
,case 5
,case IDOK
,case IDCANCEL
ret 1
Function TvAddItems
;/
function htv
SetWinStyle htv TVS_CHECKBOXES 1
SendMessage htv TVM_DELETEITEM 0 0
int i
Acc a=acc("" "LISTITEM" win("Yahoo! Messenger" "YahooBuddyMain") "SysListView32" "" 0x1)
if(a.a)
,i=a.a.ChildCount
,for a.elem 1 i
,,_s=a.Name
,,TvAdd htv 0 _s
Could you please help me to make a function that will get the checked items and save their names in a notepad?
Thank you