#include <CtrlLib/CtrlLib.h> #include "StatPlugin.h" using namespace Upp; #define LAYOUTFILE "StatPlugin.lay" #include <CtrlCore/lay.h> class CStatDialog : public WithStatDialog<TopWindow> { public: void setLnk (CStats &ptr); void Cal_CallBack (); void CBtn_CallBack(); CStatDialog (); typedef CStatDialog CLASSNAME; private: CStats _statslnk; };
UPP::Ctrl::InitWin32(0); UPP::AppInitEnvironment__(); CStatDialog dform = CStatDialog(); dform.setPtr(stats_obj); dform.RunAppModal(); UPP::DeleteUsrLog(); UPP::AppExit__();
Report message to a moderator