Hello O'Great Ones,
I have problem with SendMessage() from inside the EnumChildWindowsProc.
*From my Form1 Code I called (I have hParent handle already)
Call EnumChildWindows(hParent, AddressOf EnumChildProc, &H0)
And in my EnumChildProc (in the module) I have
lResult = SendMessage(hChild, WM_SETTEXT, ByVal 0&, ByVal SentText)
MsgBox hChild
MsgBox lResult
But that lResult always return 0 (zero) though the hChild is a valid handle that I want.
Where am I doing it wrong? H-e-l-p.
I have problem with SendMessage() from inside the EnumChildWindowsProc.
*From my Form1 Code I called (I have hParent handle already)
Call EnumChildWindows(hParent, AddressOf EnumChildProc, &H0)
And in my EnumChildProc (in the module) I have
lResult = SendMessage(hChild, WM_SETTEXT, ByVal 0&, ByVal SentText)
MsgBox hChild
MsgBox lResult
But that lResult always return 0 (zero) though the hChild is a valid handle that I want.
Where am I doing it wrong? H-e-l-p.