home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 1997 May / Pcwk0597.iso / sybase / starbuck / hpp.z / WWIZARD.HPP < prev   
C/C++ Source or Header  |  1996-10-28  |  3KB  |  93 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,8);
  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.                  const WChar * text=NULL, WBool isPropertyTitle=FALSE,
  41.                  WInt startItemIndex=0, WPropertySheetInfo * infoArray=NULL,
  42.                  WInt numItems=0, WBool autoButtonHandling=TRUE );
  43.     
  44.         ~WWizard();
  45.  
  46.         /**********************************************************
  47.          * Properties
  48.          *********************************************************/
  49.  
  50.         // AutoButtonHandling
  51.  
  52.         WBool GetAutoButtonHandling();
  53.         WBool SetAutoButtonHandling( WBool autoButtonHandling );
  54.  
  55.         /**********************************************************
  56.          * Methods
  57.          *********************************************************/
  58.  
  59.         // EnableButton
  60.  
  61.         void EnableButton( WWizardButton buttonToEnable, WBool enable );
  62.  
  63.         // PressButton
  64.  
  65.         WBool PressButton( WWizardButton buttonToSimulate );
  66.  
  67.         /**********************************************************
  68.          * Overrides
  69.          *********************************************************/
  70.  
  71.         // ChangeCancelToClose
  72.  
  73.         virtual WBool ChangeCancelToClose();
  74.  
  75.         /**********************************************************
  76.          * Data members
  77.          *********************************************************/
  78.  
  79.     private:
  80.  
  81.         WBool                           _backEnabled;
  82.         WBool                           _nextEnabled;
  83.         WBool                           _finishEnabled;
  84.         WBool                           _autoButtonHandling;
  85. };
  86.  
  87. #ifndef _WNO_PRAGMA_PUSH
  88. #pragma enum pop;
  89. #pragma pack(pop);
  90. #endif
  91.  
  92. #endif // _WWIZARD_HPP_INCLUDED
  93.