home *** CD-ROM | disk | FTP | other *** search
/ io Programmo 10 / ioProg_10.iso / soft / optima / hpp.z / WWIZARD.HPP < prev   
Encoding:
C/C++ Source or Header  |  1996-03-28  |  2.6 KB  |  94 lines

  1. /*************************************************************************
  2.  *
  3.  * WWizard -- Wrapper for the Windows 95 Property Sheet Wizard control.
  4.  *
  5.  *
  6.  *   Events:
  7.  *
  8.  *************************************************************************/
  9.  
  10. #ifndef _WWIZARD_HPP_INCLUDED
  11. #define _WWIZARD_HPP_INCLUDED
  12.  
  13. #ifndef _WNO_PRAGMA_PUSH
  14. #pragma pack(push,4);
  15. #pragma enum int;
  16. #endif
  17.  
  18. #ifndef _WPROPSHT_HPP_INCLUDED
  19. #  include "wpropsht.hpp"
  20. #endif
  21.  
  22. enum WWizardButton {
  23.     WWBBack,
  24.     WWBNext,
  25.     WWBFinish
  26. };
  27.  
  28. class WCMCLASS WWizard : public WPropertySheet {
  29.     WDeclareSubclass( WWizard, WPropertySheet );
  30.  
  31.     friend class WPropertySheetItem;
  32.  
  33.     public:
  34.  
  35.         /**********************************************************
  36.          * Constructors and destructors
  37.          *********************************************************/
  38.  
  39.         WWizard( WBool hasHelp=FALSE, WIcon * image=NULL,
  40.                         char * text=NULL, WBool isPropertyTitle=FALSE,
  41.                         WInt startItemIndex=0,
  42.                         WPropertySheetInfo * infoArray=NULL, WInt numItems=0,
  43.                         WBool autoButtonHandling=TRUE );
  44.     
  45.         ~WWizard();
  46.  
  47.         /**********************************************************
  48.          * Properties
  49.          *********************************************************/
  50.  
  51.         // AutoButtonHandling
  52.  
  53.         WBool GetAutoButtonHandling();
  54.         WBool SetAutoButtonHandling( WBool autoButtonHandling );
  55.  
  56.         /**********************************************************
  57.          * Methods
  58.          *********************************************************/
  59.  
  60.         // EnableButton
  61.  
  62.         void EnableButton( WWizardButton buttonToEnable, WBool enable );
  63.  
  64.         // PressButton
  65.  
  66.         WBool PressButton( WWizardButton buttonToSimulate );
  67.  
  68.         /**********************************************************
  69.          * Overrides
  70.          *********************************************************/
  71.  
  72.         // ChangeCancelToClose
  73.  
  74.         virtual WBool ChangeCancelToClose();
  75.  
  76.         /**********************************************************
  77.          * Data members
  78.          *********************************************************/
  79.  
  80.     private:
  81.  
  82.         WBool                           _backEnabled;
  83.         WBool                           _nextEnabled;
  84.         WBool                           _finishEnabled;
  85.         WBool                           _autoButtonHandling;
  86. };
  87.  
  88. #ifndef _WNO_PRAGMA_PUSH
  89. #pragma enum pop;
  90. #pragma pack(pop);
  91. #endif
  92.  
  93. #endif // _WWIZARD_HPP_INCLUDED
  94.