2014-07-28 21:38:57|?次阅读|上传:wustguangh【已有?条评论】发表评论
关键词:C/C++, CAA, CATIA|来源:唯设编程网
构造函数的方法体为空,仅仅调用父类CATInteractiveApplication的构造函数,父类构造函数会自动执行BeginApplication方法。BeginApplication函数构建应用程序窗口并使其可见,EndApplication方法仅仅返回0值标识程序正常退出。应用程序被最后的实例化语句激活运行
提醒: 记得在“CAADlgHelloApplication.cpp”开始处添加头文件: #include "CAADlgHelloWindow.h" |
#ifndef CAADlgHelloWindow_h #define CAADlgHelloWindow_h // COPYRIGHT DASSAULT SYSTEMES 2003 //============================================================================= // Abstract of the class: // ---------------------- // This class is the frame of the CAADlgHelloApplication // //============================================================================= // Dialog FrameWork #include "CATDlgDocument.h" // To derive from // Dialog Framework class CATInteractiveApplication; // Application kept in data member class CAADlgHelloWindow : public CATDlgDocument { // Declares the CAADlgHelloWindow.CATNls file as the dialog message catalog // This file is set in the Cnext esourcesmsgcatalog of the current FW // DeclareResource(CAADlgHelloWindow, CATDlgDocument) public: /* * Constructor. No initialization is actually done in it. * The real initialization is done in the Build method. */ CAADlgHelloWindow(CATInteractiveApplication * iParentCommand); virtual ~CAADlgHelloWindow(); // // Build // ----- // This method constructs at least the dialog's objects. // // void Build(); private: // Callback to the close void Exit (CATCommand * iSendingCommand, CATNotification * iSentNotification, CATCommandClientData iUsefulData); // // Default constructor, not implemented // Set as private to prevent from compiler automatic creation as public. CAADlgHelloWindow (); // Copy constructor, not implemented // Set as private to prevent from compiler automatic creation as public. CAADlgHelloWindow(const CAADlgHelloWindow &iObjectToCopy); // Assignment operator, not implemented // Set as private to prevent from compiler automatic creation as public. CAADlgHelloWindow & operator = (const CAADlgHelloWindow &iObjectToCopy); private: // The parent widget (a CATInteractiveApplication instance) CATInteractiveApplication * _pHelloApplication; }; #endif