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

  1. /*********************************************************************/
  2. /*
  3.  -  fld.h
  4.  -  Copyright (C) 1995 Microsoft Corporation
  5.  -
  6.  *  Purpose:
  7.  *      Defines id's, function prototypes, classes for folder class
  8.  */
  9. /*********************************************************************/
  10.  
  11. #ifndef __folder_h_    
  12. #define __folder_h_
  13.  
  14. #include "mdbview.h"
  15.  
  16. /*********************************************************************/
  17. /*
  18.  -  CFolderDlg Class
  19.  -
  20.  *  Purpose:
  21.  *      Defines the controls for the Folder viewer Dialog
  22.  *
  23.  */
  24. /*********************************************************************/
  25.  
  26. class CFolderDlg : public CPropDlg
  27. {
  28. protected:
  29.  
  30.     BOOL InitFldDialog();               
  31.  
  32. public:
  33.  
  34.     // data members
  35.     LPMAPITABLE     m_lpAssociatedTable;    
  36.     LPMAPITABLE     m_lpMessageTable;   
  37.     LPMAPITABLE     m_lpChildTable;
  38.     CString         m_CurrentFolder;
  39.     LPMAPIFOLDER    m_lpFolder;
  40.  
  41.     // used for keeping track of current advises on objects
  42.     LPNOTIFS        m_lpNotifAssTbl;
  43.     LPNOTIFS        m_lpNotifContTbl;
  44.     LPNOTIFS        m_lpNotifHeirTbl;
  45.     LPNOTIFS        m_lpNotifFld;
  46.  
  47.     char            m_szHeirContext[COMMENT_SIZE];
  48.     char            m_szContContext[COMMENT_SIZE];
  49.     char            m_szAssContext[COMMENT_SIZE];
  50.     char            m_szFldContextCreated[COMMENT_SIZE];
  51.     char            m_szFldContextDeleted[COMMENT_SIZE];
  52.     char            m_szFldContextCopied[COMMENT_SIZE];
  53.     char            m_szFldContextMoved[COMMENT_SIZE];
  54.     char            m_szFldContextModified[COMMENT_SIZE];
  55.     char            m_szFldContextCritical[COMMENT_SIZE];
  56.  
  57.     char            m_szSearchFldContext[COMMENT_SIZE];
  58.  
  59.     // constructor
  60.     CFolderDlg( CString         FolderName,
  61.                 LPMAPIFOLDER    lpFld,
  62.                 CWnd            *pParentWnd)
  63.         : CPropDlg( (LPMAPIPROP)lpFld,Fld, pParentWnd)  
  64.     {             
  65.         m_CurrentFolder     = FolderName;
  66.         m_lpFolder          = lpFld;
  67.         m_lpChildTable      = NULL;
  68.         m_lpMessageTable    = NULL;       
  69.         m_lpAssociatedTable = NULL;       
  70.  
  71.         m_lpNotifAssTbl     = NULL;
  72.         m_lpNotifContTbl    = NULL;
  73.         m_lpNotifHeirTbl    = NULL;
  74.         m_lpNotifFld        = NULL;
  75.             
  76.         if( !InitFldDialog())       // after creation of dialog, to folder
  77.            OnCancel();              //  specific initialization to fill in
  78.                                     //  listbox's etc.
  79.     }
  80.  
  81.     ~CFolderDlg()       { Cleanup(); }
  82.     void OnCancel();
  83.     void Cleanup();
  84.          
  85.     void OnOpenChildFolder();
  86.     void OnOpenMessage();
  87.     void OnOpenAssociated();
  88.     
  89.     // setting state, redrawing
  90.     void RedrawFolderTable();
  91.     void RedrawMessageTable();
  92.     void RedrawAssociatedTable();
  93.  
  94.     void OnAssociated(); 
  95.     void OnChildFolder();
  96.     void OnProperty();  
  97.     void OnMessage();    
  98.  
  99.     // operations   
  100.     void OnFldCreate();
  101.     void OnFldDelete();
  102.     void OnMsgCreate();
  103.     void OnMsgDelete();
  104.     void OnSetSearchDestFlds();
  105.     void OnCopyFolder();
  106.     void OnCopyMessages();
  107.     void OnAbortSubmit();
  108.     void OnSetReceiveFolder();
  109.     void OnContTable();
  110.     void OnHeirTable();
  111.     void OnEmptyFolder();
  112.     void OnMDBProp();
  113.     void OnGetSearchCriteria();        
  114.     void OnSetSearchCriteria();        
  115.     void OnSetCopyToDest();
  116.     void OnGetMsgStatus();                
  117.     void OnSetMsgStatus();                
  118.  
  119.     void OnNotifHeir();
  120.     void OnNotifAss();
  121.     void OnNotifFld();
  122.     void OnNotifCont();
  123.                 
  124.     void OnCallFunction();
  125.     void OnSpecialProps();
  126.     void OnPropInterface();
  127.     
  128.  
  129.    
  130.     DECLARE_MESSAGE_MAP();
  131. };
  132.  
  133.  
  134. /*********************************************************************/
  135. /*
  136.  -  CFldSpecialDlg
  137.  -
  138.  *  Purpose:
  139.  *      Defines the controls for the GetPropList Property Dialog
  140.  *
  141.  */
  142. /*********************************************************************/
  143.  
  144. class CFldSpecialDlg : public CModalDialog
  145. {
  146. public:
  147.  
  148.     LPMAPIFOLDER    m_lpFolder;
  149.  
  150.     CFldSpecialDlg( LPMAPIFOLDER    lpFld,
  151.                     CWnd            *pParentWnd)
  152.         : CModalDialog(FLD_SPECIAL, pParentWnd)
  153.     {
  154.         m_lpFolder = lpFld;
  155.     }
  156.  
  157.     ~CFldSpecialDlg();  
  158.  
  159.     BOOL OnInitDialog();
  160.     void OnCancel();    
  161.  
  162. };
  163.  
  164.  
  165. #endif
  166.  
  167.  
  168.  
  169.