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

  1. /*
  2.  -  S E N D M A I L . H
  3.  -  Copyright (C) 1995 Microsoft Corporation
  4.  -
  5.  *  Purpose:
  6.  *      Header for SENDMAIL.CPP
  7.  *
  8.  */
  9.  
  10. // threaddata is used so that a user has the ability to stop the tests
  11. // since multiple threads are implemented(WIN32) or simulated(WIN16).
  12. typedef struct _threaddata
  13. {
  14.     DWORD   dwThreadId;
  15.     HWND    hWnd;
  16.     BOOL    fSendToAll;
  17.     lpMapiMessage   lpmsg;
  18.     lpMapiRecipDesc lpRecips;
  19.     ULONG   cRecips;
  20.     ULONG   cMessages;
  21.     ULONG   nSeconds;
  22.     BOOL    fSubjectAlt;
  23.     BOOL    fMessageTypeAlt;
  24.     BOOL    fNoteTextAlt;
  25. } THREADDATA, *LPTHREADDATA;
  26.  
  27.  
  28. class CMainWindow : public CFrameWnd
  29. {
  30.     protected:
  31.         virtual void PostNcDestroy();
  32.  
  33.     public:
  34.         CMainWindow();
  35.  
  36.     /* Menu command message map functions */
  37.  
  38.     afx_msg void OnExit();
  39.     afx_msg void OnClose();
  40.     afx_msg void OnSend();
  41.     afx_msg void OnAbout();
  42.  
  43.     DECLARE_MESSAGE_MAP()
  44. };
  45.  
  46. class CTheApp : public CWinApp
  47. {
  48.     public:
  49.         BOOL InitInstance();
  50.         int  ExitInstance();
  51. };
  52.  
  53. class CSendMailDialog : public CModalDialog
  54. {
  55.     public:
  56.  
  57.         char            szDisplayName[128];
  58.         ULONG           cRecips;
  59.         ULONG           cNewRecips;
  60.         ULONG           ulTestNumber;
  61.         lpMapiRecipDesc lpRecips;
  62.         lpMapiRecipDesc lpNewRecips;
  63.  
  64.     CSendMailDialog( CWnd* pWndParent = NULL )
  65.         : CModalDialog( IDD_SENDMAIL, pWndParent ) { }
  66.  
  67.     BOOL OnInitDialog();
  68.  
  69.     /* Message Handlers */
  70.     afx_msg void OnOK();
  71.     afx_msg void OnAddress();
  72.     afx_msg void OnCancel();
  73.     afx_msg void OnStop();
  74.     afx_msg void OnFile();
  75.  
  76.     DECLARE_MESSAGE_MAP()
  77. };
  78.  
  79. #ifdef WIN16
  80. class CHiddenDialog : public CDialog
  81. {
  82.     public:
  83.         LPTHREADDATA    lptd2;
  84.                                         
  85.     CHiddenDialog( LPTHREADDATA lptd, CWnd * pWndParent = NULL )
  86.         : CDialog( IDD_HIDDEN, pWndParent ) 
  87.     {
  88.         lptd2 = (LPTHREADDATA) lptd;
  89.         Create(IDD_HIDDEN);
  90.     }
  91.  
  92.     virtual BOOL    OnInitDialog();
  93.     void OnCancel();
  94. };
  95. #endif
  96.  
  97. long DoSend( LPTHREADDATA );
  98. void FillFile( ULONG ulsize, HFILE hFile );
  99.  
  100.