when you say "added it to project" do you mean you just set the project
resource file to your .rc file?
i believe that you also have to set the menu in your WNDCLASSEX struct or
dynamically set it or something of the sort, eg:
wincl.lpszMenuName = MAKEINTRESOURCE(ID_MENU); // Load the
menu
where ID_MENU is the integer ID same as in your resource file.
you assign this element in the struct before calling
RegisterClassEx(&wincl);
-----Original Message-----
From: dev...@li...
[mailto:dev...@li...]On Behalf Of Vlada
Djurovic
Sent: Thursday, 5 September 2002 8:45 PM
To: DevC++ help
Subject: [Dev-C++] no menu
Hi !
I have very frustrating problem: I wrote an .rc file containing menu
definition, added it to project, everything compiled OK, but when I run the
application, I dont get menu on it. Everything else seems OK except this.
Whats wrong?
Any help is appriciated.
|