home *** CD-ROM | disk | FTP | other *** search
/ Power GUI Programming with VisualAge C++ / powergui.iso / trialva / ibmcppw / sdk / mapi / win16 / dev / mdbview / oper.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-07-11  |  3.9 KB  |  129 lines

  1. /*********************************************************************/
  2. /*
  3.  -  oper.h
  4.  -  Copyright (C) 1995 Microsoft Corporation
  5.  -
  6.  *  Purpose:
  7.  *      Defines id's, function prototypes, classes for operations class.
  8.  *      This class is used to bring up a dialog from which the 
  9.  *      user can select data to be used as parameters to operations.
  10.  *      Not all the dialog controls are used in every case.
  11.  *
  12.  */
  13. /*********************************************************************/
  14.  
  15. #ifndef __oper_h_       // test defined
  16. #define __oper_h_
  17.  
  18.  
  19. #define TEST_INVALID_FLAG       999
  20.  
  21.  
  22. /*********************************************************************/
  23. /*
  24.  -  COperation Class
  25.  -
  26.  *  Purpose:
  27.  *      Defines the controls for the Dialogs to do operations
  28.  *
  29.  */
  30. /*********************************************************************/
  31.  
  32. class COperation : public CModalDialog
  33. {
  34. public:
  35.                                     // sting describing what operation performing
  36.     CString         m_CurrentOperation;
  37.                         
  38.                                     // text describing what params/data goes
  39.                                     // in which Combobox, edit control or flag
  40.                                     // checkbox
  41.     CString         m_CBText1;     
  42.     CString         m_CBText2;
  43.     CString         m_CBText3;
  44.     CString         m_EditText1;
  45.     CString         m_EditText2;
  46.     CString         m_EditText3;
  47.     CString         m_FlagText1;
  48.     CString         m_FlagText2;
  49.     CString         m_FlagText3;
  50.     CString         m_FlagText4;
  51.     CString         m_FlagText5;
  52.     CString         m_FlagText6;
  53.     
  54.     CStringArray    m_CBContents1;  // data in combo boxes
  55.     CStringArray    m_CBContents2;
  56.     CStringArray    m_CBContents3;
  57.     
  58.     CString         m_EditDefault1; // default string in edit controls
  59.     CString         m_EditDefault2;
  60.     CString         m_EditDefault3;
  61.  
  62.                                     // holds string from listboxes and
  63.                                     // checkboxes to be used by application                                       
  64.     char            m_szCB1[80];
  65.     char            m_szCB2[80];    
  66.     char            m_szCB3[80];    
  67.     char            m_szEdit1[80];    
  68.     char            m_szEdit2[80];    
  69.     char            m_szEdit3[80];    
  70.  
  71.                                     // determines if flag is checked==TRUE
  72.                                     //   or unchecked==FALSE    
  73.     BOOL            m_bFlag1;           
  74.     BOOL            m_bFlag2;
  75.     BOOL            m_bFlag3;
  76.     BOOL            m_bFlag4;
  77.     BOOL            m_bFlag5;
  78.     BOOL            m_bFlag6;
  79.  
  80.     COperation( CWnd * pParentWnd)
  81.         : CDialog(OPERATIONS, pParentWnd)
  82.         {
  83.             m_bFlag1            = FALSE;
  84.             m_bFlag2            = FALSE;
  85.             m_bFlag3            = FALSE;
  86.             m_bFlag4            = FALSE;                        
  87.             m_bFlag5            = FALSE;
  88.             m_bFlag6            = FALSE;                        
  89.  
  90.             m_CBText1           = "";
  91.             m_CBText2           = "";
  92.             m_CBText3           = "";
  93.             m_EditText1         = "";
  94.             m_EditText2         = "";
  95.             m_EditText3         = "";
  96.             m_FlagText1         = "";
  97.             m_FlagText2         = "";
  98.             m_FlagText3         = "";
  99.             m_FlagText4         = "";
  100.             m_EditDefault1      = "";
  101.             m_EditDefault2      = "";
  102.             m_EditDefault3      = "";
  103.  
  104.  
  105.         }
  106.     
  107.     ~COperation() {  }
  108.  
  109.     BOOL OnInitDialog();
  110.   
  111.     void OnOK();
  112.     void OnCancel();
  113.     
  114.     void OnFlag1();             // flags are checkboxes
  115.     void OnFlag2();
  116.     void OnFlag3();
  117.     void OnFlag4();
  118.     void OnFlag5();
  119.     void OnFlag6();
  120.  
  121.     DECLARE_MESSAGE_MAP();
  122.  
  123. };
  124.  
  125. #endif
  126.  
  127.  
  128.  
  129.