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

  1. /*********************************************************************/
  2. /*
  3.  -  msg.h
  4.  -  Copyright (C) 1995 Microsoft Corporation
  5.  -
  6.  *  Purpose:
  7.  *      Defines id's, function prototypes, classes for message class
  8.  */
  9. /*********************************************************************/
  10.  
  11. #ifndef __msg_h_        // test defined
  12. #define __msg_h_
  13.  
  14. #include "mdbview.h"
  15.  
  16.  
  17.  
  18. /*********************************************************************/
  19. /*
  20.  -  CMessageDlg Class
  21.  -
  22.  *  Purpose:
  23.  *      Defines the controls for the Message viewer Dialog
  24.  *
  25.  */
  26. /*********************************************************************/
  27.  
  28. class CMessageDlg : public CPropDlg
  29. {
  30. protected:
  31.     BOOL    InitMsgDialog();
  32.  
  33. public:
  34.     CString         m_CurrentMessage;
  35.     LPMESSAGE       m_lpMessage;
  36.     LPMAPITABLE     m_lpAttachTable;
  37.     LPMAPITABLE     m_lpRecipTable;
  38.  
  39. //#ifdef XVPORT
  40.     LPNOTIFS        m_lpNotifAttTbl;
  41.     LPNOTIFS        m_lpNotifRecipTbl;
  42.     LPNOTIFS        m_lpNotifMsg;
  43. //#endif
  44.  
  45.     char            m_szAttContext[COMMENT_SIZE];
  46.     char            m_szRecipContext[COMMENT_SIZE];
  47.     char            m_szMsgContextCreated[COMMENT_SIZE];
  48.     char            m_szMsgContextDeleted[COMMENT_SIZE];
  49.     char            m_szMsgContextCopied[COMMENT_SIZE];
  50.     char            m_szMsgContextMoved[COMMENT_SIZE];
  51.     char            m_szMsgContextModified[COMMENT_SIZE];
  52.     char            m_szMsgContextCritical[COMMENT_SIZE];
  53.  
  54.  
  55.     CMessageDlg(CString MsgName,LPMESSAGE lpMsg,CWnd * pParentWnd)
  56.         : CPropDlg((LPMAPIPROP) lpMsg,Msg, NULL)
  57.     {
  58.         m_lpRecipTable      = NULL; 
  59.         m_lpMessage         = lpMsg;        
  60.         m_lpAttachTable     = NULL;
  61.         m_CurrentMessage    = MsgName;
  62. //#ifdef XVPORT
  63.         m_lpNotifAttTbl     = NULL;
  64.         m_lpNotifRecipTbl   = NULL;
  65.         m_lpNotifMsg        = NULL;
  66. //#endif        
  67.         if( !InitMsgDialog() )
  68.             Cleanup();
  69.     }
  70.  
  71.     ~CMessageDlg()   { Cleanup(); }
  72.     void OnCancel();
  73.     void Cleanup();         
  74.     
  75.     void OnAttachLB();
  76.     void OnOpenAttachLB();
  77.  
  78.     
  79.     // display    
  80.     void OnProperty();
  81.     void OnRecipTable();
  82.     void OnAttachTable();
  83.     void OnRecipLB();   
  84.  
  85.     void    DisplayMsgFlags();
  86.     void    DisplayRecips();
  87.     void    DisplayAttachments();
  88.     
  89.     void    RedrawPriority();
  90.  
  91.     // operations 
  92.     void OnModifyRecipients();
  93.     void OnSubmitMessage();
  94.     void OnSetReadFlag();
  95.     void OnDeleteAttach();
  96.     void OnCreateAttach();
  97.  
  98.     void OnRecipientOptions();
  99.     void OnMDBProp();
  100.     void OnMessageOptions();
  101.     
  102.     void OnShowForm();
  103.  
  104.     void OnSetCopyToDest();
  105.     
  106.     void OnNotifAttTbl();
  107.     void OnNotifRecipTbl();
  108.     void OnNotifMsg();
  109.  
  110.     void OnCallFunction();
  111.     void OnSpecialProps();
  112.     void OnPropInterface();
  113.     void OnX400Props();
  114.     
  115.     DECLARE_MESSAGE_MAP();
  116. };
  117.  
  118.  
  119. /*********************************************************************/
  120. /*
  121.  -  CIPNSpecialDlg
  122.  -
  123.  *  Purpose:
  124.  *      Defines the controls for the GetPropList Property Dialog
  125.  *
  126.  */
  127. /*********************************************************************/
  128.  
  129. class CIPNSpecialDlg : public CModalDialog
  130. {
  131. public:
  132.  
  133.     LPMESSAGE        m_lpMessage;
  134.  
  135.     CIPNSpecialDlg( LPMESSAGE       lpMsg,
  136.                     CWnd            *pParentWnd)
  137.         : CModalDialog(X400_IPN_SPECIAL, pParentWnd)
  138.     {
  139.         m_lpMessage = lpMsg;
  140.     }
  141.  
  142.     ~CIPNSpecialDlg();  
  143.  
  144.     BOOL OnInitDialog();
  145.     void OnCancel();    
  146.  
  147. };
  148.  
  149. /*********************************************************************/
  150. /*
  151.  -  CIPMSpecialDlg
  152.  -
  153.  *  Purpose:
  154.  *      Defines the controls for the GetPropList Property Dialog
  155.  *
  156.  */
  157. /*********************************************************************/
  158.  
  159. class CIPMSpecialDlg : public CModalDialog
  160. {
  161. public:
  162.  
  163.     LPMESSAGE        m_lpMessage;
  164.  
  165.     CIPMSpecialDlg( LPMESSAGE       lpMsg,
  166.                     CWnd            *pParentWnd)
  167.         : CModalDialog(X400_IPM_SPECIAL, pParentWnd)
  168.     {
  169.         m_lpMessage = lpMsg;
  170.     }
  171.  
  172.     ~CIPMSpecialDlg();  
  173.  
  174.     BOOL OnInitDialog();
  175.     void OnCancel();    
  176.  
  177. };
  178.  
  179. /*********************************************************************/
  180. /*
  181.  -  CMsgSpecialDlg
  182.  -
  183.  *  Purpose:
  184.  *      Defines the controls for the GetPropList Property Dialog
  185.  *
  186.  */
  187. /*********************************************************************/
  188.  
  189. class CMsgSpecialDlg : public CModalDialog
  190. {
  191. public:
  192.  
  193.     LPMESSAGE        m_lpMessage;
  194.  
  195.     CMsgSpecialDlg( LPMESSAGE       lpMsg,
  196.                     CWnd            *pParentWnd)
  197.         : CModalDialog(MSG_SPECIAL, pParentWnd)
  198.     {
  199.         m_lpMessage = lpMsg;
  200.     }
  201.  
  202.     ~CMsgSpecialDlg();  
  203.  
  204.     BOOL OnInitDialog();
  205.     void OnCancel();    
  206.  
  207. };
  208.  
  209.  
  210.  
  211. #endif
  212.  
  213.  
  214.