bonami Messages: 186 Registered: June 2007 Location: Beijing
Experienced Member
class Bonjour : public WithBonjourLayout<TopWindow> {
...
MenuBar menu;
...};
void Bonjour::Menu(Bar& bar)
{
menu.Add("File", THISBACK(FileMenu));
/* This is the top level menu. i cannot open File menu by Alt+F, though the menu name shows an underlined F.
if i implement this using bool HotKey(dword), i still cannot activate all menus by Alt, which is Window's windows' behavior */
menu.GapRight();
menu.Add("Help", THISBACK(HelpMenu));
}