Re: MDI forms and Dlls (visual C++ 2005)



"Fisherking" wrote:
Okey, Nobody?

hmm. I have almost made it but there is one problem.

I can get the parent form and all it classes, but I cant
cast the Form
I recieve to a MainForm (as my parent form is called). And
if I try I
to #include "MainForm.h" I create a circular dependency
and we all know
that C++ does not allow this (without workarounds)

I dont have access to the code right now, but I have
tried something
like this:
safe_cast<MainForm ^ >(this->MdiParent);

But the compiler does not know about the MainForm class!


It seems that you're working with WinForms or whatever .NET
framework for GUI. This group is not the best choice for
such kind of questions, since most of participants are
proficient in C++ rather than .NET languages and
technologies.

Anyway, I can give you an answer from Win32 point of view.
It may be OK for WinForms and it may be totally wrong, I'm
not a big expert in WinForms framework.

In Win32 world "communication" between windows boils down to
posting/sending messages to them. So, all you need to
communicate successfully between MDI children is their
HWND's. You can register each MDI child with parent window
and from any other MDI child request window handle and post
or send user defined message.

Also, try to ask in following groups:

microsoft.public.dotnet.framework.windowsforms
microsoft.public.dotnet.languages.vc

HTH
Alex


.



Relevant Pages

  • RE: Customize Windows.Forms.MdiClient
    ... parent form and set its Dock property to None to turn off the 3D bevel ... you could set the 'Active Window Border' or 'Inactive Window ... Microsoft Online Community Support ... where an initial response from the community or a Microsoft Support ...
    (microsoft.public.dotnet.languages.vb)
  • Checkbox problem
    ... My AIM -> When somebody want to add new patient a parent form will open ... i am facing problem when single record will be there in popup window at ...
    (comp.lang.javascript)
  • Topmost Dropdown-window
    ... create the drop-down window so it's a "topmost" window and also a child of ... (the form that contains the control) ... always return to the parent form, not even using Focusor Activateafter ... the drop-down window extends the client-size of the parent ...
    (microsoft.public.dotnet.framework.windowsforms.controls)
  • Re: How do you create a child window/form
    ... window showing each unique result set, otherwise, I would use a regular form. ... Doug Steele, Microsoft Access MVP ... Open the parent form in design view, and drag the form you created above ...
    (microsoft.public.access.forms)
  • Re: MDI Window - Own Status
    ... I have a MDI Parent form and an MDI child form. ... like its own status bar or tool bar on top and puts it there. ...
    (microsoft.public.dotnet.languages.vb)