找回密码
 加入
搜索
查看: 1974|回复: 0

[GUI管理] 用SendMessage 向外部treeView发送 $WM_NOTIFY消息?

[复制链接]
发表于 2014-12-9 11:11:49 | 显示全部楼层 |阅读模式
Local $tNMHDR=DllStructCreate($tagNMHDR);Global Const $tagNMHDR = "struct; hwnd hWndFrom;uint_ptr IDFrom;INT Code; endstruct"
DllStructSetData($tNMHDR, "hwnd", $WinHwnd)
DllStructSetData($tNMHDR, "IDFrom",$IDFrom)
DllStructSetData($tNMHDR, "Code", $TVN_SELCHANGEDA)

;Global Const $tagNMTREEVIEW = $tagNMHDR & ";uint Action;" & _
;        "struct; uint OldMask;handle OldhItem;uint OldState;uint OldStateMask;" & _
;        "ptr OldText;int OldTextMax;int OldImage;int OldSelectedImage;int OldChildren;lparam OldParam; endstruct;" & _
;        "struct; uint NewMask;handle NewhItem;uint NewState;uint NewStateMask;" & _
;        "ptr NewText;int NewTextMax;int NewImage;int NewSelectedImage;int NewChildren;lparam NewParam; endstruct;" & _
;        "struct; long PointX;long PointY; endstruct"

Local $tNM_TREEVIEW= DllStructCreate($tagNMTREEVIEW)
DllStructSetData($tNM_TREEVIEW, "$tagNMHDR", $tNMHDR)
DllStructSetData($tNM_TREEVIEW, "NewhItem", $aryItemHwnd[6])
DllStructSetData($tNM_TREEVIEW, "Action", $TVN_SELCHANGEDA)

 _SendMessage( $WinHwnd, $WM_NOTIFY, $IDFrom,  $tNM_TREEVIEW)
前面的DllStructSetData($tNM_TREEVIEW, "$tagNMHDR", $tNMHDR)   这个语句对吗?如何向在结构中的结构SetData呢?
您需要登录后才可以回帖 登录 | 加入

本版积分规则

QQ|手机版|小黑屋|AUTOIT CN ( 鲁ICP备19019924号-1 )谷歌 百度

GMT+8, 2024-12-23 11:31 , Processed in 0.076147 second(s), 19 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表