Xref: utzoo comp.lang.c++:9319 comp.windows.ms:4759 Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!uwm.edu!zaphod.mps.ohio-state.edu!wuarchive!uunet!mcsun!i2unix!inria!jcc From: jcc@adesign.uucp (Jean Christophe) Newsgroups: comp.lang.c++,comp.windows.ms Subject: Help needed with CommonView Keywords: CommonView, child window, menus Message-ID: <668@design.uucp> Date: 30 Aug 90 13:26:54 GMT Organization: Axis Design, 119 rue de Flandre 75019 Paris France Lines: 55 Hello folks, A friend of mine needs help with GlockenSpiel CommonView! The problem is that she wants to put a menubar in a child window but can't find a way to make it works... Here is what she did code : class ChildWin : public ChildAppWindow { private: Menu menu; Menu menubar; public: ChildWin(pWindow); ~ChildWin(); }; ChildWin::ChildWin(pWindow parent) : (parent) { UnableBorder(); ChangePosition(Point(100,100)); ChangeSize(Dimension(200,200)); // Here is the stuff that should work // but don't .... menu.AppendItem(1,"Load"); menu.AppendItem(2,"Save"); menubar.AppendItem(&menu,"File"); ChangeMenu(&menubar); } Anybody got an idea why this fails ? Note : this is done with C++ 1.2 and I suspect the version of CommonView to be somehow out of date... Reply by Email please. Thanx in advance, -- "Jessie" ------------------------------------------------------------------------------ jcc@adesign.uucp | "An artificial intelligence is better than none!" ..!inria!adesign!jcc | "Artificial intelligence matches natural stupidity!" Collet Jean-Christophe | "Objets inanimes avez-vous donc une ame ?" ------------------------------------------------------------------------------ Axis Design | 119, rue de Flandres | 75019 Paris | France | Tel: +33 (1) 40 35 20 20 | ------------------------------------------------------------------------------