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.
(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.