AnsweredAssumed Answered

vrf getting Vee's hWnd

Question asked by VRFuser on Jun 9, 2003
Thanks Shawn, you've given me some good avenues to investigate. I had a suspicion that there wasn't a quick and foolproof way to do it.

Cheers,
Craig.


> -----Original Message-----
> From: Shawn Fessenden [mailto:shawn@testech-ltd.com]
> Sent: Tuesday, 10 June 2003 03:22
> To: VEE vrf
> Subject: [vrf] RE: getting Vee's hWnd
>
>
> Craig,
>
> > What is the best way for Vee to
> > get the hWnd handle of it's own window?
>
> The easiest way is to call FindWindow with VEE's window
> class, passing NULL for window title. VEE 5's class was
> "HPVEE". It's now "AgilentVEE". The trouble with this is that
> if you have multiple instances running it will only find one of them.
>
> You *can* use the Process Status API (psapi.dll) with NT, or
> the ToolHelp library with both 9x & NT but both are much more
> difficult than a simple FindWindow call (more so ToolHelp
> than Process Status). Or you can enumerate all on screen
> windows & go completely nuts finding the one you want.
>
> All things considered I like one simple clean easy call.
> -SHAWN-
>

---
You are currently subscribed to vrf as: rsb@soco.agilent.com
To subscribe send a blank email to "join-vrf@it.lists.it.agilent.com".
To unsubscribe send a blank email to "leave-vrf@it.lists.it.agilent.com".
To send messages to this mailing list,  email "vrf@it.lists.it.agilent.com". 
If you need help with the mailing list send a message to "owner-vrf@it.lists.it.agilent.com".

Outcomes