home *** CD-ROM | disk | FTP | other *** search
/ Tools / WinSN5.0Ver.iso / NETSCAP.50 / WIN1998.ZIP / ns / cmd / winfe / attachdl.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-04-08  |  2.8 KB  |  110 lines

  1. /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
  2.  *
  3.  * The contents of this file are subject to the Netscape Public License
  4.  * Version 1.0 (the "NPL"); you may not use this file except in
  5.  * compliance with the NPL.  You may obtain a copy of the NPL at
  6.  * http://www.mozilla.org/NPL/
  7.  *
  8.  * Software distributed under the NPL is distributed on an "AS IS" basis,
  9.  * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
  10.  * for the specific language governing rights and limitations under the
  11.  * NPL.
  12.  *
  13.  * The Initial Developer of this code under the NPL is Netscape
  14.  * Communications Corporation.  Portions created by Netscape are
  15.  * Copyright (C) 1998 Netscape Communications Corporation.  All Rights
  16.  * Reserved.
  17.  */
  18.  
  19. // attachdl.h : header file
  20. //
  21.  
  22. #include "msgctype.h"
  23. #include "mmnmsg.h"
  24.  
  25. /////////////////////////////////////////////////////////////////////////////
  26. // CAttachDlg dialog
  27.  
  28. class CAttachDlg : public CDialog
  29. {
  30. // Construction
  31. public:
  32.     CAttachDlg( MSG_Pane * pPane = NULL,
  33.         char * pUrl = NULL, CWnd* pParent = NULL);   // standard constructor
  34.  
  35. // Dialog Data
  36.     //{{AFX_DATA(CAttachDlg)
  37.     enum { IDD = IDD_MULTIATTACH };
  38.     CButton    m_DeleteButton;
  39.     CButton    m_AsIsButton;
  40.     CButton    m_ConvertButton;
  41.     CListBox    m_AttachmentList;
  42.     int        m_bAsIs;
  43.     //}}AFX_DATA
  44.  
  45.     char * m_pUrl;
  46.     MSG_Pane * m_pPane;
  47.     MSG_Pane * GetMsgPane() { return m_pPane; }
  48.  
  49.  
  50. // Overrides
  51.     // ClassWizard generated virtual function overrides
  52.     //{{AFX_VIRTUAL(CAttachDlg)
  53.     protected:
  54.     virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
  55.     //}}AFX_VIRTUAL
  56.  
  57. // Implementation
  58. protected:
  59.  
  60.     void CleanupAttachList(void);
  61.  
  62.     // Generated message map functions
  63.     //{{AFX_MSG(CAttachDlg)
  64.     afx_msg void OnAttachfile();
  65.     afx_msg void OnAttachurl();
  66.     afx_msg void OnConvert();
  67.     afx_msg void OnDelete();
  68.     afx_msg void OnAsis();
  69.     virtual void OnOK();
  70.     virtual void OnCancel();
  71.     virtual BOOL OnInitDialog();
  72.     afx_msg void OnSelchangeAttachments();
  73.     //}}AFX_MSG
  74.     DECLARE_MESSAGE_MAP()
  75. };
  76. /////////////////////////////////////////////////////////////////////////////
  77. // CLocationDlg dialog
  78.  
  79. class CLocationDlg : public CDialog
  80. {
  81. // Construction
  82. public:
  83.     CLocationDlg(char * pUrl = NULL, CWnd* pParent = NULL);   // standard constructor
  84.  
  85.     char * m_pUrl;
  86. // Dialog Data
  87.     //{{AFX_DATA(CLocationDlg)
  88.     enum { IDD = IDD_ATTACHLOCATION };
  89.     CEdit    m_LocationBox;
  90.     CString    m_Location;
  91.     //}}AFX_DATA
  92.  
  93.  
  94. // Overrides
  95.     // ClassWizard generated virtual function overrides
  96.     //{{AFX_VIRTUAL(CLocationDlg)
  97.     protected:
  98.     virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
  99.     //}}AFX_VIRTUAL
  100.  
  101. // Implementation
  102. protected:
  103.  
  104.     // Generated message map functions
  105.     //{{AFX_MSG(CLocationDlg)
  106.     virtual BOOL OnInitDialog();
  107.     //}}AFX_MSG
  108.     DECLARE_MESSAGE_MAP()
  109. };
  110.