home *** CD-ROM | disk | FTP | other *** search
/ Visual Basic 4 Power Pack / Visual_Basic4_Power_Pack.bin / vb4files / scentbns / bndemo3.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-11-20  |  5.2 KB  |  158 lines

  1. //***************************************************************************
  2. //
  3. // BNDEMO3.H - Header file
  4. //
  5. // Steven R Clabaugh
  6. // SRC Enterprises
  7. //
  8. //***************************************************************************
  9.  
  10. //***************************************************************************
  11. //***************************************************************************
  12. //
  13. //  Define the application object class
  14. //
  15. //***************************************************************************
  16. //***************************************************************************
  17. class CTheApp : public CWinApp
  18. {
  19.  
  20.    //***************************************
  21.    // Data Members
  22.    //***************************************
  23.  
  24.    private:
  25.  
  26.       // Window Class Name
  27.       // Initialized by AfxRegisterWndClass call in InitApplication
  28.       CString m_WndClassName;
  29.  
  30.    //***************************************
  31.    // Function Members
  32.    //***************************************
  33.  
  34.    protected:
  35.  
  36.       virtual BOOL InitApplication();
  37.       virtual BOOL InitInstance();
  38.  
  39. }; // End Class CTheApp
  40. //***************************************************************************
  41. //***************************************************************************
  42.  
  43. //***************************************************************************
  44. //***************************************************************************
  45. //
  46. //  Define the application's main window object class
  47. //
  48. //***************************************************************************
  49. //***************************************************************************
  50. class CMainWnd : public CFrameWnd
  51. {
  52.  
  53.    //***************************************
  54.    // Data Members
  55.    //***************************************
  56.  
  57.    public:
  58.  
  59.       //************************************************************
  60.       // Declare instances for all Buttons used on the Main Window
  61.       //************************************************************
  62.       CSRCEntBN
  63.       
  64.          // Predefined Bitmap Vertical Spin buttons(One for each Size)
  65.          m_VSpin1, m_VSpin2, m_VSpin3, m_VSpin4, m_VSpin5, m_VSpin6,
  66.        
  67.          // Predefined Bitmap Horizontal Spin buttons(One for each Size)
  68.          m_HSpin1, m_HSpin2, m_HSpin3, m_HSpin4, m_HSpin5, m_HSpin6,
  69.        
  70.          // 2-State Toggle Switch located directly beneath the
  71.          // 6 vertical spin button.  It is used as a switch to enable
  72.          // and disable the vertical spin buttons.       
  73.          m_NFTSw,
  74.  
  75.          // This User defined Spin Button used to simulate a 2-State
  76.          // Momentary Toggle Switch located directly beneath the 6 horizontal
  77.          // Spin buttons.  It is used as a switch to enable and
  78.          // disable the horizontal spin buttons.
  79.          m_Switch1,
  80.  
  81.          // Color Buttons
  82.          m_RedBut, m_GrnBut, m_BluBut, m_YelBut,
  83.          m_CynBut, m_MagBut, m_GryBut, m_BlkBut,
  84.  
  85.          // Spin Button for the fancy looking Volume Control
  86.          m_Volume,
  87.  
  88.          // 2-State Push Button That will enable and disable
  89.          // the fancy looking Volume Control
  90.          m_Voled;
  91.  
  92.       //************************************************************
  93.       // Declare instances for all needed edit controls.
  94.       // These are MFC CEdit Class.
  95.       //************************************************************
  96.       CEdit
  97.  
  98.          // Edit Controls for Vertcal Spin Buttons
  99.          m_VSPEdit1, m_VSPEdit2, m_VSPEdit3,
  100.          m_VSPEdit4, m_VSPEdit5, m_VSPEdit6,
  101.  
  102.          // Edit Controls for Horizontal Spin Buttons
  103.          m_HSPEdit1, m_HSPEdit2, m_HSPEdit3,
  104.          m_HSPEdit4, m_HSPEdit5, m_HSPEdit6,
  105.  
  106.          // EDIT control to display the fancy looking Volume Control value
  107.          m_VEdit;
  108.  
  109.    CString cBuff;
  110.  
  111.    DWORD TextColor;
  112.  
  113.    //***************************************
  114.    // Function Members
  115.    //***************************************
  116.  
  117.    public:
  118.  
  119.       CMainWnd(CString ClassName);   // Constructor
  120.  
  121.    // *** Message Map
  122.    protected:
  123.  
  124.       //{{AFX_MSG(CMainWnd)
  125.       afx_msg void OnAbout();
  126.       afx_msg int  OnCreate(LPCREATESTRUCT lpCreateStruct);
  127.       afx_msg void OnVSpin1();
  128.       afx_msg void OnVSpin2();
  129.       afx_msg void OnVSpin3();
  130.       afx_msg void OnVSpin4();
  131.       afx_msg void OnVSpin5();
  132.       afx_msg void OnVSpin6();
  133.       afx_msg void OnHSpin1();
  134.       afx_msg void OnHSpin2();
  135.       afx_msg void OnHSpin3();
  136.       afx_msg void OnHSpin4();
  137.       afx_msg void OnHSpin5();
  138.       afx_msg void OnHSpin6();
  139.       afx_msg void OnNFTSw();
  140.       afx_msg void OnSwitch1();
  141.       afx_msg void OnRedBut();
  142.       afx_msg void OnGrnBut();
  143.       afx_msg void OnBluBut();
  144.       afx_msg void OnYelBut();
  145.       afx_msg void OnCynBut();
  146.       afx_msg void OnMagBut();
  147.       afx_msg void OnGryBut();
  148.       afx_msg void OnBlkBut();
  149.       afx_msg void OnVolume();
  150.       afx_msg void OnVoled();
  151.       afx_msg void OnPaint();      
  152.       //}}AFX_MSG
  153.       DECLARE_MESSAGE_MAP()     // Should be last in the class definition
  154.  
  155. }; // END Class CMainWnd
  156. //***************************************************************************
  157. //***************************************************************************
  158.