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

  1. ///////////////////////////////////////////////////////////////////////////////
  2. //                        SAMPLE CODE
  3. //
  4. // FileName: ACDFBd5.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 handling SelectAll and FileNew methods
  11. //              have been overridden so that the view class will be called when
  12. //              the user has selected either of these 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                handleSelectAll( Boolean );
  34.     virtual void                handleFileNew();
  35. };
  36.  
  37. #endif
  38.