[comp.windows.ms] Help needed with CommonView

jcc@adesign.uucp (Jean Christophe) (08/30/90)

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			|    <this space left intentionaly blank>
France				|
Tel: +33 (1) 40 35 20 20	|
------------------------------------------------------------------------------

goodearl@world.std.com (Robert Goodearl) (08/31/90)

In article <668@design.uucp> jcc@adesign.uucp (Jean Christophe) writes:
>
>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...

That's because you cannot have menus in child windows.  Windows doesn't support
it.  In order for a window to have a menu, it must be a pop-up.
-- 
Bob Goodearl -- goodearl@world.std.com