home *** CD-ROM | disk | FTP | other *** search
/ CD Direkt: Spezial 1 / CDD_SPIELE_.ISO / wingames / pyramid / cdialog.h < prev    next >
C/C++ Source or Header  |  1993-08-18  |  2KB  |  61 lines

  1. //-------------------------------------------------------------------
  2. //  PROGRAM:            CDIALOG.H
  3. //
  4. //  DESCRIPTION:        Header for CDIALOG.CPP
  5. //
  6. //                      Written by Carlos Yu
  7. //
  8. //  NOTE:             The program design is kinda hacked because
  9. //                    this is my first attempt at creating a
  10. //                    fully functional Windows program using
  11. //                    OWL and C++.
  12. //
  13. //                    Any suggestions on making the program better,
  14. //                    specially the DealCards module which is
  15. //                    painfully slow, would be greatly appreciated.
  16. //
  17. //                    Compuserve ID 72672,1567
  18. //-------------------------------------------------------------------
  19.  
  20. #include <owl.h>
  21. #include <dialog.h>
  22.  
  23.  
  24. //--------------------------------
  25. //  Push Button Constans
  26. //--------------------------------
  27.  
  28. #define ID_YESPUSHED             6
  29. #define ID_NOPUSHED              7
  30. #define ID_INFOPUSHED          444
  31. #define INFODIALOG             700
  32.  
  33.  
  34. class CDialog : public TDialog
  35. {
  36.     private:
  37.         int                      xPos,
  38.                                  yPos;
  39.  
  40.         HWND                     parentHandle;
  41.  
  42.     public:
  43.         CDialog(PTWindowsObject AParent, int ResourceId) :
  44.             TDialog(AParent, ResourceId)
  45.         {
  46.             parentHandle = AParent->HWindow;
  47.         }
  48.         
  49.         virtual void SetupWindow();
  50.  
  51.  
  52.         virtual void YesChosen(RTMessage)
  53.             = [ID_FIRST + ID_YESPUSHED];
  54.  
  55.         virtual void NoChosen(RTMessage)
  56.             = [ID_FIRST + ID_NOPUSHED];
  57.  
  58.         virtual void InfoChosen(RTMessage)
  59.             = [ID_FIRST + ID_INFOPUSHED];
  60. };
  61.