1. Cannot initialise panel and menu in MDI Parent Frame constructor together
#2447
Posted by: 2003-08-07 10:34:32
Hi, I am getting this strange error. In my MDI Parent frame's constructor, i create and set the menu bar, then i create a panel control. The program compiles properly but immediately crashes when i run it(see error.bmp).
I move the code for the menu bar out into the app init, recompile and run and it works!? (see mywindow.bmp).
I noticed that the mdi demo itself moved the menu stuff out to the app init too. So i am hoping someone can point out the obvious and explain why this should be the way to do it?