Guidance
指路人
g.yi.org
Guidance Forums / wxWidgets (wxWindows) in C++ / Cannot initialise panel and menu in MDI Parent Frame constructor together

Register 
注册
Search 搜索
首页 
Home Home
Software
Upload

  
Forum List • Thread List • Reply • Refresh • New Topic • Search • Previous • Next First 1 Last
Message1. 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?

Thanks.

Code here:

http://www.geocities.com/moronmaster/bad.rtf
http://www.geocities.com/moronmaster/works.rtf
Forum List • Thread List • Reply • Refresh • New Topic • Search • Previous • Next First 1 Last
掌柜推荐
 
 
¥477.00 ·
 
 
¥918.00 ·
 
 
¥370.00 ·
 
 
¥271.00 ·
 
 
¥995.00 ·
 
 
¥1,580.00 ·
© Sun 2024-11-24  Guidance Laboratory Inc.
Email:webmaster1g.yi.org Hits:0