How can I get The Handle of a VBasic 5.0 Form in VC++ 5.0 
Author Message
 How can I get The Handle of a VBasic 5.0 Form in VC++ 5.0

I'm trying to write a OCX that handles some operations in  VB Forms, but I
dont know how to get the handle of the Form .

I Know that then handle must be passed through a Method , but i dont know
how to define it in then Function Declaration.



Fri, 06 Oct 2000 03:00:00 GMT  
 How can I get The Handle of a VBasic 5.0 Form in VC++ 5.0

What's wrong with 'myForm.hWnd' ?

HTH

- Adwait

Quote:

>I'm trying to write a OCX that handles some operations in  VB Forms, but I
>dont know how to get the handle of the Form .

>I Know that then handle must be passed through a Method , but i dont know
>how to define it in then Function Declaration.



Sat, 07 Oct 2000 03:00:00 GMT  
 How can I get The Handle of a VBasic 5.0 Form in VC++ 5.0

Have you tried:
 hWndNext = FindWindow( NULL, "Window's Title" );

Quote:

> I'm trying to write a OCX that handles some operations in  VB Forms, but I
> dont know how to get the handle of the Form .

> I Know that then handle must be passed through a Method , but i dont know
> how to define it in then Function Declaration.



Sat, 07 Oct 2000 03:00:00 GMT  
 How can I get The Handle of a VBasic 5.0 Form in VC++ 5.0

Probably he just didn't know it existed.

Kevin

On Tue, 21 Apr 1998 06:43:29 -0700, "Adwait Ullal"

Quote:

>What's wrong with 'myForm.hWnd' ?

>HTH

>- Adwait


>>I'm trying to write a OCX that handles some operations in  VB Forms, but I
>>dont know how to get the handle of the Form .

>>I Know that then handle must be passed through a Method , but i dont know
>>how to define it in then Function Declaration.



Sat, 07 Oct 2000 03:00:00 GMT  
 How can I get The Handle of a VBasic 5.0 Form in VC++ 5.0



Quote:
> Have you tried:
>  hWndNext = FindWindow( NULL, "Window's Title" );

[snip]
it's easier (from the side of the form): Form1.hWnd will give you the
handle
pass it like this: ByVal hwnd As Long
it's "tidier" to get the handle from the side of the control, by using
Parent, but that's also a little harder


Sun, 08 Oct 2000 03:00:00 GMT  
 
 [ 5 post ] 

 Relevant Pages 

1. How can I get The Handle of a VBasic 5.0 Form in VC++ 5.0

2. Help: Calling dll's form Vbasic writen in VC++ 5.0

3. How can I get the Handle of a Form in a VC++ 5.0

4. How can I get the Handle of a Form in a VC++ 5.0

5. looking for financial and statistical libaries (e.g.time series) - VB 5.0 or VC 5.0

6. Is a VB 5.0 ActiveX DLL Compatible with VC 5.0

7. Floating Point Speed - Comparison of VB 5.0, Delphi 3.0, and VC 5.0

8. How to import CArchive object from VC++ 5.0 to VB 5.0

9. Problem calling DLL writen in VC 5.0 from VB 5.0

10. VC++ 5.0 DLL for VB 5.0

11. VC++ 5.0 DLL for VB 5.0

12. Problem calling DLL writen in VC 5.0 from VB 5.0

 

 
Powered by phpBB® Forum Software