home *** CD-ROM | disk | FTP | other *** search
/ Power GUI Programming with VisualAge C++ / powergui.iso / trialva / ibmcppw / samples / ioc / acdf2 / acdfbd2.hpp < prev    next >
Encoding:
C/C++ Source or Header  |  1996-02-22  |  1.1 KB  |  37 lines

  1. ///////////////////////////////////////////////////////////////////////////////
  2. //                        SAMPLE CODE
  3. //
  4. // FileName: ACDFBd2.hpp
  5. //
  6. // ClassName: ACompDocFwkMyBundle
  7. //
  8. // Description: This is the bundle class. The reason a user version of the 
  9. //              IGUIbundle class is created is to override the bundle menu handling.
  10. //              For example in this case handlingFileNew method have been overridden so
  11. //              that the view class will be called when the user has selects
  12. //              this menu options.
  13. ///////////////////////////////////////////////////////////////////////////////
  14. #ifndef _COMPDOCFWK_BUNDLE_
  15. #define _COMPDOCFWK_BUNDLE_
  16.  
  17. #ifdef IC_TRACE_DEVELOP
  18.     #include <itrace.hpp>
  19. #else
  20.     #define IFUNCTRACE_DEVELOP()
  21.     #define ITRACE_DEVELOP(x)
  22. #endif
  23.  
  24. #include <iguibndl.hpp>
  25.  
  26. class ACompDocFwkMyBundle : public  IGUIBundle
  27. {
  28. public:
  29.                     ACompDocFwkMyBundle();
  30.                     ~ACompDocFwkMyBundle();
  31.  
  32.     // Override the menu command from the guibundle!!!
  33.     virtual void    handleFileNew();
  34. };
  35.  
  36. #endif
  37.