home *** CD-ROM | disk | FTP | other *** search
/ Tools / WinSN5.0Ver.iso / NETSCAP.50 / WIN1998.ZIP / ns / cmd / winfe / dlgseldg.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-04-08  |  3.0 KB  |  118 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. // dlgseldg.h : header file
  20. //
  21. #include "apiimg.h"
  22. #include "mailmisc.h"
  23. #include "msgcom.h"
  24. /////////////////////////////////////////////////////////////////////////////
  25. // CFilterList
  26.  
  27. typedef struct FolderData
  28. {
  29.     MSG_FolderInfo *infoData;
  30.     BOOL bDownLoad;
  31. }FolderData;
  32.  
  33.  
  34. class CDiscussionsList: public CMailFolderList
  35. {
  36.  
  37. private:
  38.     int m_iPosIndex, m_iPosName, m_iPosStatus;
  39. protected:
  40.     virtual void DrawItem( LPDRAWITEMSTRUCT lpDrawItemStruct );
  41.  
  42.     virtual void MeasureItem( LPMEASUREITEMSTRUCT lpMeasureItemStruct )
  43.     {
  44.         DoMeasureItem( m_hWnd, lpMeasureItemStruct );
  45.     }
  46.  
  47.  
  48.     afx_msg void OnLButtonDown( UINT nFlags, CPoint point ); 
  49.     DECLARE_MESSAGE_MAP()
  50.  
  51. public:
  52.     CDWordArray *m_pDWordArray;
  53.     BOOL m_bHasSelectables;
  54. public:
  55.     UINT    ItemFromPoint(CPoint pt, BOOL& bOutside) const;
  56.  
  57.     //overriding functionality called in CMailFolderHelper
  58.     int  PopulateNews(MSG_Master *pMaster, BOOL bRoots);
  59.     void SubPopulate(int &index, MSG_FolderInfo *folder );
  60.  
  61.     
  62.     CDiscussionsList();
  63.     ~CDiscussionsList();
  64.  
  65.     void SetColumnPositions(int, int, int);
  66. };
  67.  
  68.  
  69.  
  70.  
  71.  
  72.  
  73. /////////////////////////////////////////////////////////////////////////////
  74. // CDlgSelectGroups dialog
  75.  
  76. class CDlgSelectGroups : public CDialog
  77. {
  78.  
  79. public:
  80.     int m_nDiscussionSelectionCount;
  81.     int m_nMailSelectionCount;
  82.     int m_iIndex;
  83.     CDiscussionsList m_DiscussionList;
  84.  
  85. // Construction
  86. public:
  87.     CDlgSelectGroups(CWnd* pParent = NULL);   // standard constructor
  88.  
  89. // Dialog Data
  90.     //{{AFX_DATA(CDlgSelectGroups)
  91.     enum { IDD = IDD_SELECT_DISCUSSIONS };
  92.         // NOTE: the ClassWizard will add data members here
  93.     //}}AFX_DATA
  94.  
  95.     int GetSelectionCount() {return m_nDiscussionSelectionCount;};
  96.     int GetMailSelectionCount() {return m_nMailSelectionCount;};
  97.  
  98. // Overrides
  99.     // ClassWizard generated virtual function overrides
  100.     //{{AFX_VIRTUAL(CDlgSelectGroups)
  101.     protected:
  102.     virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
  103.     //}}AFX_VIRTUAL
  104.  
  105. // Implementation
  106. protected:
  107.  
  108.     // Generated message map functions
  109.     //{{AFX_MSG(CDlgSelectGroups)
  110.     afx_msg void OnButtonSelectAll();
  111.     virtual void OnOK();
  112.     virtual BOOL OnInitDialog();
  113.     virtual void OnCancel();
  114.     virtual void OnHelp();
  115.     //}}AFX_MSG
  116.     DECLARE_MESSAGE_MAP()
  117. };
  118.