Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

I have a VB Application which passe

Status
Not open for further replies.

raochetan

Programmer
Aug 20, 2001
62
IN
I have a VB Application which passes a file name to an ActiveX Dll implemented using ATL Wizards in VC++. The file contains data which are to be displayed as a free line graph on the screen. For this purpose, i am creating a dialog box in the Dll. I want this dialog box to be a child form of the VB Application. Can any one suggest how to implement this. Note that i have already created an MDI form in VB Application.

Thanks in Advance.

raochetan
 
Pass the hWnd property of the VB Form to your ATL DLL and use it as the parent when you're creating the graph. The only thing I'm not sure of is what happens when a user closes the form -- I don't know if the graph window will get notification of that. Try it and see.

Chip H.
 
The VB application has to notify the Graph window about it. On Form_Unload event, it calls another method of the ATL DLL which does the clean up procedure.

I would like to know is that, Is there a supporting data type in MIDL to pass hWnd property of the VB form or one one of the standard data type like long has to used for it.

Thanks in Advance.

raochetan

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top