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

  1. /*
  2.  -  S T A T V U . H
  3.  -  Copyright (C) 1995 Microsoft Corporation
  4.  -
  5.  *  Purpose:
  6.  *      Header for STATVU.CPP
  7.  *
  8.  */
  9.  
  10. #ifndef __STATVU_H__
  11. #define __STATVU_H__
  12.  
  13. // Message Box Styles 
  14.  
  15. #define MBS_ERROR                       (MB_ICONSTOP | MB_OK )
  16. #define MBS_INFO                        (MB_ICONINFORMATION | MB_OK)
  17. #define MBS_OOPS                        (MB_ICONEXCLAMATION | MB_OK)
  18.  
  19.  
  20. #define PROP_LISTBOX_HORIZONTAL_SIZE    2000
  21.  
  22.  
  23. /*********************************************************************/
  24. /*
  25.  -  COpenStatusDlg Class
  26.  -
  27.  *  Purpose:
  28.  *      Defines the controls for the Open Status Dialog
  29.  *
  30.  */
  31. /*********************************************************************/
  32.  
  33. class COpenStatusDlg : public CModalDialog
  34. {
  35. public:
  36.     LPMAPITABLE     m_lptblStatus;
  37.     LPSRowSet       m_lpRows;
  38.     LPMAPISESSION   m_lpSession;
  39.     ULONG           m_cbEntryIDTarget;
  40.     LPENTRYID       m_lpEntryIDTarget;
  41.     CString         m_szTarget;
  42.  
  43.     COpenStatusDlg(LPMAPISESSION lpSession, HWND hWnd)
  44.         : CModalDialog(STATUS_CHOOSE, NULL)
  45.     {
  46.         m_lpSession         = lpSession;
  47.         m_lptblStatus       = NULL;
  48.         m_lpRows            = NULL;
  49.         m_cbEntryIDTarget   = 0;
  50.         m_lpEntryIDTarget   = NULL;
  51.     }
  52.  
  53.     ~COpenStatusDlg();  
  54.  
  55.     BOOL OnInitDialog();
  56.  
  57.     void OnOpen();
  58.     void OnReadOnly();  
  59.     void OnTargetXport();
  60.     void DisplayStatus();   
  61.     void OnCancel();
  62.     
  63.     DECLARE_MESSAGE_MAP();
  64. };
  65.  
  66.                      
  67.  
  68. /*********************************************************************/
  69. /*
  70.  -  CStatusDlg Class
  71.  -
  72.  *  Purpose:
  73.  *      Defines the controls for the Open Status Dialog
  74.  *
  75.  */
  76. /*********************************************************************/
  77.  
  78. class CStatusDlg : public CModalDialog
  79. {
  80. public:
  81.     LPMAPISTATUS        m_lpStatus;
  82.     LONG                m_lResourceType;
  83.     LONG                m_lResourceFlags;
  84.     CString             m_szDLLName;
  85.     ULONG               m_cbEntryIDTargetXport;
  86.     LPENTRYID           m_lpEntryIDTargetXport;
  87.     CString             m_szTargetXport;
  88.  
  89.     CStatusDlg(CWnd * pParentWnd)
  90.         : CModalDialog(STATUS, pParentWnd)
  91.     {
  92.         m_lpStatus              = NULL;
  93.         m_lResourceType         = 0;
  94.         m_lResourceFlags        = 0;        
  95.         m_cbEntryIDTargetXport  = 0;
  96.         m_lpEntryIDTargetXport  = NULL;
  97.     }
  98.  
  99.     ~CStatusDlg();  
  100.  
  101.     BOOL OnInitDialog();
  102.  
  103.     void OnCancel();
  104.     
  105.     void DisplayProps();
  106.  
  107.     void OnStatusProps();
  108.     void OnValidateState();
  109.     void OnSettingsDialog();
  110.     void OnFlushQueues();
  111.     void OnChangePassword();
  112.     void OnRegisterNotification();
  113.         
  114.     DECLARE_MESSAGE_MAP();
  115. };
  116.  
  117. /*********************************************************************/
  118. /*
  119.  -  CGetError
  120.  -
  121.  *  Purpose:
  122.  *      Defines the methods to Get Error Strings.
  123.  *
  124.  */
  125. /*********************************************************************/
  126.  
  127. class CGetError
  128. {
  129.     private:
  130.         char    m_szMessage[80];
  131.         char    m_szResult[80];
  132.         char    m_szBuffer[80];
  133.  
  134.     public:
  135.         CGetError()
  136.         {
  137.             m_szMessage[0]  = '\0';
  138.             m_szResult[0]   = '\0';
  139.         };
  140.  
  141.         ~CGetError() { };           
  142.  
  143. #ifdef WIN16
  144.         LPSTR SzError( LPSTR, HRESULT );
  145. #endif        
  146.         LPSTR SzError( LPSTR, SCODE );
  147. };
  148.  
  149.  
  150. #endif  /* __STATVU_H__ */
  151.