I want to show a MessageBox . what wrong with my code?



.elseif umsg == WM_NOTIFY
.if wparam == 401 ; Treeview
mov eax,lparam
mov edx,(NM_TREEVIEW ptr [eax]).hdr.code
mov ecx,(NM_TREEVIEW ptr [eax]).itemNew.hItem

.if edx == TVN_SELCHANGED
.if ecx == hChild1
invoke MessageBox,0,addr Child1,addr Child1,MB_OK
.endif
.endif
.endif
Posted on 2003-10-20 12:30:31 by sysnet
Better use NMHDR.idFrom than wParam field for control ID to check.
Posted on 2003-10-20 21:42:26 by japheth
sysnet
I want to show a MessageBox
What you have?
Child1 is located in stack or data segment?
Investigate code in debugger.
Posted on 2003-10-20 21:44:13 by P2M