mfc >> Problems with MDI

by fedrick m. » Fri, 28 Nov 2003 17:07:43 GMT

Hello,

I am a newbie in programming with MFC. Recently I created
a MDI program with MFC and added different types of views
(like ListView, TreeView) to this program. However, I was
not able to make the various types of windows appear upon
startup. Can anyone who knows how to do it shed some light
upon it?

Also, even though I tried using "SetWindowtext()" in the
OnDraw() methods, all the different windows still get
named in numerical order even though they are of different
types. Did I do it wrong?

Thank you very much in advance.
Fedrick.


Similar Threads

1. Stange problem with MDI parent - MDI child

Hi,
I have a very strange problem. I will try to explain it:

I have MDI parent form in which I open MDI child form. 
While working with that MDI child form in runtime I add 
some user control and I attach listeners to that user 
control. When certain events are catched that control is 
removed from the form. When removing control I also 
remove listeners.

The strange thing is: When I try to close MDI child form 
it does not want to. There is no exception. I do not know 
what is happening.

Thanks,

Jan.

2. ContextMenu problem in MDI - CSharp/C#

3. Problem with MDI application performance

Hi,

I'm developing a MDI application.  I'm facing problems with the performance
of the MDI child forms in the application. The load time of child forms is
very slow. In case of MDI child forms having background image and handling
paint event, the load time is even slower due to the background painting.
Repainting of form controls is also not proper.. If I execute the forms as a
SDI application, the performance is significantly better.

Is there anything I can do to increase the load performance of MDI child
forms or am I missing something?

Thanks,
Girish.


4. ContextMenu problem in MDI forms - CSharp/C#

5. Problem with MDI Parent

I have an MDIParent form, and I want to write in the Caption, near the
buttons, the name of my company.

So I override the WndProc, and on some messages like WM_NCPAINT,
WM_SIZE,WM_ACTIVATE I call a function DrawCaption that write the name in the
right upper corner.

So far , so good.

The problem is that when I hit the restore down or maximize button, or I
double click on the title, the Text remains written in two places, in the
old place (when the window was not maximized) and in the new place.
This bug does not appear on XP, only on 2000 and lower.

Any suggestions?

PS:
I tested on both Frameworks, 1.0 and 1.1


6. ALT + TAB problem in MDI Application - CSharp/C#

7. Problem of MDI child window

Hello
I have a main window in my app which has an MDI client window as a sub 
window. The MDI client window is sent a WM_MDICREATE message, which creates 
the MDI child window, although the MDI child window is maximized its title 
bar is still showing. What can be done to resolve this?
Also, when the main window resizes, the MDI child window's restore button 
stays at restore rather than mazimize but its size stays the same, i.e. it 
doesn't 'remaximize'. Do you have to code around this manually or is there 
an automatic method of setting it?

Cheers


8. Standard ID_EDIT_CUT/COPY/PASTE problem with mdi app