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

  1. /*********************************************************************/
  2. /*
  3.  -  attach.h
  4.  -  Copyright (C) 1995 Microsoft Corporation
  5.  -
  6.  *  Purpose:
  7.  *      Defines id's, function prototypes, classes for attach class
  8.  */
  9. /*********************************************************************/
  10.  
  11. #ifndef __attach_h_     
  12. #define __attach_h_
  13.  
  14. #include "mdbview.h"
  15.  
  16. /*********************************************************************/
  17. /*
  18.  -  CAttachDlg Class
  19.  -
  20.  *  Purpose:
  21.  *      Defines the controls for the Attach viewer Dialog
  22.  *
  23.  */
  24. /*********************************************************************/
  25.  
  26. class CAttachDlg : public CPropDlg
  27. {
  28. protected:
  29.     BOOL InitAttachDialog();
  30.  
  31. public:
  32.  
  33.     LPMAPIPROP      m_lpAttach;
  34.     CString         m_CurrentAttach;
  35.  
  36.     CAttachDlg( CString     AttachName,
  37.                 LPATTACH    lpAttach,
  38.                 CWnd *      pParentWnd)
  39.         : CPropDlg((LPMAPIPROP) lpAttach,ATTACH,NULL)
  40.     {
  41.         m_lpAttach      = lpAttach;
  42.         m_CurrentAttach = AttachName;
  43.         
  44.         if( !InitAttachDialog() )
  45.             OnCancel();
  46.     }
  47.  
  48.     ~CAttachDlg()   { Cleanup(); }
  49.     void OnCancel();
  50.     void Cleanup();
  51.  
  52.     void OnMDBProp();
  53.     void OnOpenAttachAsMsg();                   
  54.     void OnProperty() { }
  55.     void OnSetCopyToDest();
  56.     void OnCallFunction(); 
  57.     void OnSpecialProps(); 
  58.     void OnPropInterface();
  59.  
  60.     DECLARE_MESSAGE_MAP();
  61. };
  62.  
  63. /*********************************************************************/
  64. /*
  65.  -  CAttachSpecialDlg
  66.  -
  67.  *  Purpose:
  68.  *      Defines the controls for the GetPropList Property Dialog
  69.  *
  70.  */
  71. /*********************************************************************/
  72.  
  73. class CAttachSpecialDlg : public CModalDialog
  74. {
  75. public:
  76.  
  77.     LPATTACH        m_lpAttach;
  78.  
  79.     CAttachSpecialDlg(  LPATTACH       lpAttach,
  80.                         CWnd           *pParentWnd)
  81.         : CModalDialog(ATTACH_SPECIAL, pParentWnd)
  82.     {
  83.        m_lpAttach = lpAttach;
  84.     }
  85.  
  86.     ~CAttachSpecialDlg();   
  87.  
  88.     BOOL OnInitDialog();
  89.     void OnCancel();    
  90.  
  91. };
  92.  
  93.  
  94.  
  95.  
  96. #endif
  97.  
  98.  
  99.  
  100.  
  101.