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!

Forcing Form in ActiveX DLL to MDI

Status
Not open for further replies.

RichardF

Programmer
Oct 9, 2000
239
GB
Hi,

(using VB6)

I have a form which sits in a DLL which in turn is accessed through methods of the class ShowGenericForm.

If in the DLL i set the MDIChild property to TRUE and call the method ShowForm in a client MDI app then i get Error "No MDI form available to Load".

However, if in the DLL i set the MDIChild to FALSE and pass the HWND of the MDIParent form to the ShowForm function as a parameter then i can use the SetParent api to 'Force' the form to 'become' a MDIChild. (Assuming inside the function i find a window with the class MDIClient as this is the true parent of MDI Child forms).

I am interested to know if doing this could break something else ? Does anybody see a problem with this ?

RF.
 
Hi Richard,

Did you ever get a good response to your question here. I have found two activex components that say they do it. See


and

C:\Documents and Settings\jmcguire\Local Settings\Temporary Internet Files\OLK3B6\ComponentSource - Product Page forMDIExtender.htm

Have you come across a way to have an MDI parent form within an activex dll?

thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top