Report message to a moderator
#include <CtrlLib/CtrlLib.h> #include <GridCtrl/GridCtrl.h> using namespace Upp; class MyApp: public TopWindow { GridCtrl gc; typedef MyApp CLASSNAME; public: MyApp () { Add(gc.SizePos()); gc.WhenMenuBar = THISBACK(GridMenu); } void GridMenu(Bar& bar) { bar.Add("My Menu", THISBACK(Nothing)); } void Nothing() {} }; GUI_APP_MAIN { MyApp ma; ma.Run(); }