AnsweredAssumed Answered

vrf getting Vee's hWnd

Question asked by g.nied on Jun 9, 2003
Hi Craig,

here is my solution for finding the hWnd of the own VEE program:

1) get the current process ID with Kernel.GetCurrentProcessId
2) get first desktop window with
3) get next window with hWnd=User.GetWindow(hwnd, GW_HWNDNext)
   stop, if no more windows found
4) read that windows processID with User.GetWindowThreadProcessId(hWnd,0)
5) compare it to the ID from 1)
6) if equal, compare its class name User.GetClassNameA(hWnd) with yours
7) stop if found or goto 3)

best regards,

G. Nied

Georg Nied  - Software-Development - Hansestr.7 - 51149 Cologne - Germany
Tel: +49 2203 9770915 - Fax: +49 2203 9770924 -


You are currently subscribed to vrf as:
To subscribe send a blank email to "".
To unsubscribe send a blank email to "".
To send messages to this mailing list,  email "". 
If you need help with the mailing list send a message to "".