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

  1. /*********************************************************************/
  2. /*
  3.  -  restrict.h
  4.  -  Copyright (C) 1995 Microsoft Corporation
  5.  -
  6.  *  Purpose:
  7.  *      Defines id's, function prototypes, classes for restrictations 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 restrictations.
  10.  *      Not all the dialog controls are used in every case.
  11.  *
  12.  */
  13. /*********************************************************************/
  14.  
  15. #ifndef __restrict_h_       // test defined
  16. #define __restrict_h_
  17.  
  18.  
  19. /*
  20.  -  CResDlg
  21.  -
  22.  *  Purpose:
  23.  *
  24.  *
  25.  */
  26.  
  27. class CResDlg : public CModalDialog
  28. {
  29. private:
  30.     LPSPropTagArray m_lpCurColumns;
  31.     LPSRestriction  m_lpRes;
  32.     LPSRestriction  m_lpSubRes;
  33.     int             m_fComb;
  34.     int             m_nResType1;
  35.     int             m_nResType2;
  36.     int             m_nResType3;
  37.  
  38. public:
  39.     CResDlg(LPSPropTagArray lpspta, LPSRestriction lpr, CWnd* lpParent = NULL);
  40.  
  41.     virtual BOOL OnInitDialog();
  42.     virtual void OnOK();
  43.     virtual void OnCancel();
  44.     
  45.     afx_msg void OnAnd();
  46.     afx_msg void OnOr();
  47.     afx_msg void OnResType1();
  48.     afx_msg void OnResType2();
  49.     afx_msg void OnResType3();
  50.     afx_msg void OnSubRes1();
  51.     afx_msg void OnSubRes2();
  52.     afx_msg void OnSubRes3();
  53.  
  54.     DECLARE_MESSAGE_MAP();
  55. };
  56.  
  57. /*
  58.  -  CRestrictionDlg
  59.  -
  60.  *  Purpose:
  61.  *
  62.  *
  63.  */
  64.  
  65. class CRestrictionDlg : public CModalDialog
  66. {
  67. public:
  68.     ULONG           m_ulSearchState;
  69.     LPSRestriction  m_prest;
  70.  
  71.     CRestrictionDlg( CWnd * pParentWnd)
  72.         : CDialog(RESTRICTION, pParentWnd)
  73.         {
  74.             m_ulSearchState = 0;
  75.             m_prest         = NULL;
  76.         }
  77.     
  78.     ~CRestrictionDlg();
  79.  
  80.     BOOL OnInitDialog();
  81.   
  82.     void DisplayRestriction(LPSRestriction lpRes);
  83.  
  84. };
  85.  
  86.  
  87. /*
  88.  -  CAcceptRestrictionDlg
  89.  -
  90.  *  Purpose:
  91.  *
  92.  *
  93.  */
  94.  
  95. class CAcceptRestrictionDlg : public CModalDialog
  96. {
  97. public:
  98.     LPSRestriction  m_prest;
  99.  
  100.     CAcceptRestrictionDlg( CWnd * pParentWnd)
  101.         : CDialog(ACCEPTRES, pParentWnd)
  102.         {
  103.             m_prest         = NULL;
  104.         }
  105.     
  106.     ~CAcceptRestrictionDlg();
  107.  
  108.     BOOL OnInitDialog();
  109.     afx_msg void OnModify();
  110.  
  111.     DECLARE_MESSAGE_MAP();
  112.   
  113.     void DisplayRestriction(LPSRestriction lpRes);
  114.  
  115. };
  116.       
  117.  
  118. #endif
  119.  
  120.  
  121.  
  122.