home *** CD-ROM | disk | FTP | other *** search
/ Tools / WinSN5.0Ver.iso / NETSCAP.50 / WIN1998.ZIP / ns / cmd / winfe / edhdrdlg.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-04-08  |  2.9 KB  |  120 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. // edhdrdlg.h : header file
  20. //
  21.  
  22. #ifndef __EDHDRDLG_H
  23. #define __EDHDRDLG_H
  24.  
  25. #include "msg_filt.h"
  26. //#include "apiimg.h"
  27. #ifndef _WIN32
  28. #include "ctl3d.h"
  29. #endif
  30. #include "mnrccln.h"
  31.  
  32.  
  33.  
  34. #define WM_EDIT_CUSTOM_DONE (WM_USER + 1556)
  35.  
  36.  
  37. class CEditHeadersDlg : public CDialog
  38. {
  39. // Construction
  40. public:
  41.     CEditHeadersDlg(CString strHeader, CWnd* pParent = NULL );   // standard constructor
  42.  
  43. // Dialog Data
  44.     //{{AFX_DATA(CEditHeadersDlg)
  45.     enum { IDD = IDD_EDIT_HEADER };
  46.     CString    m_strHeader;
  47.     //}}AFX_DATA
  48.  
  49.     CMailNewsResourceSwitcher m_MNResourceSwitcher;
  50.  
  51. public:
  52.     CWnd *m_pParent;
  53.  
  54. // Overrides
  55.     // ClassWizard generated virtual function overrides
  56.     //{{AFX_VIRTUAL(CEditHeadersDlg)
  57.     protected:
  58.     virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
  59.     //}}AFX_VIRTUAL
  60.  
  61.     void GetHeader(CString &strHeader);
  62.  
  63. // Implementation
  64. protected:
  65.     // Generated message map functions
  66.     //{{AFX_MSG(CEditHeadersDlg)
  67.     virtual BOOL OnInitDialog();
  68.     afx_msg void OnChangeEditHeader();
  69.     //}}AFX_MSG
  70.     DECLARE_MESSAGE_MAP()
  71. };
  72.  
  73.  
  74. /////////////////////////////////////////////////////////////////////////////
  75. // CCustomHeadersDlg dialog
  76.  
  77. class CCustomHeadersDlg : public CDialog
  78. {
  79. // Construction
  80. public:
  81.     CCustomHeadersDlg(CWnd* pParent = NULL);   // standard constructor
  82.     void PostNcDestroy();
  83.  
  84. // Dialog Data
  85.     //{{AFX_DATA(CCustomHeadersDlg)
  86.     enum { IDD = IDD_HEADER_LIST };
  87.     CListBox    m_lbHeaderList;
  88.     CString    m_strHeader;
  89.     //}}AFX_DATA
  90.  
  91. public:
  92.     CWnd *m_pParent;
  93.     int m_nReturnCode; //tells us if the user pressed OK to close the dialog
  94.  
  95. // Overrides
  96.     // ClassWizard generated virtual function overrides
  97.     //{{AFX_VIRTUAL(CCustomHeadersDlg)
  98.     protected:
  99.     virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
  100.     //}}AFX_VIRTUAL
  101.  
  102. // Implementation
  103. protected:
  104.  
  105.     // Generated message map functions
  106.     //{{AFX_MSG(CCustomHeadersDlg)
  107.     virtual BOOL OnInitDialog();
  108.     afx_msg void OnAddHeader();
  109.     afx_msg void OnChangeEditHeaders();
  110.     afx_msg void OnSetfocusHeaderList();
  111.     afx_msg void OnRemoveHeader();
  112.     afx_msg void OnEditHeader();
  113.     virtual void OnOK();
  114.     afx_msg void OnClose();
  115.     //}}AFX_MSG
  116.     DECLARE_MESSAGE_MAP()
  117. };
  118. #endif
  119.  
  120.