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

  1. ///////////////////////////////////////////////////////////////////////////////
  2. //                        SAMPLE CODE
  3. //
  4. // FileName: ACDFBd4.cpp
  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 has been 
  11. //              overridden so that the view class will be called when
  12. //              the user selects this menu options.
  13. ///////////////////////////////////////////////////////////////////////////////
  14. #include "ACDFBd4.hpp"
  15. #include "acdfvw4.hpp"
  16.  
  17. ACompDocFwkMyBundle::ACompDocFwkMyBundle()
  18. // Constructor
  19. {   IFUNCTRACE_DEVELOP();}
  20.  
  21. ACompDocFwkMyBundle::~ACompDocFwkMyBundle()
  22. // Destructor
  23. {   IFUNCTRACE_DEVELOP();}
  24.  
  25. void ACompDocFwkMyBundle::handleSelectAll( Boolean selectAll )
  26. // Overide the select all to set the background to show that select has been
  27. // selected.
  28. {   IFUNCTRACE_DEVELOP();
  29.     ACompDocFwkView* theView;
  30.     theView = (ACompDocFwkView*)&objectView();
  31.     theView->handleSelectAll(selectAll);
  32.  
  33.     IGUIBundle::handleSelectAll(selectAll);
  34. }
  35.