quote:
Originally posted by dazlee
i translated it, getDLGItem for IMWindow or the child DirectUIHWND returns 0
i can get it working in a seperate app put in the dll i cant get the focusing of msn to work.
I use:
Private Declare Function SetForegroundWindow Lib "user32" (ByVal hwnd As Long) As Long
And i loop until its focused, however it freezes coz inside the dll it wont bring it forward but same code in my other app will, exactally the same hwnd's????
any ideas????
Declare the Const Infinite and use WaitForSingleObject
retval=SetForegroundwindow()
waitforsingleobject retval,infinite
hopfully this will work