home *** CD-ROM | disk | FTP | other *** search
/ Media Share 13 / mediashare_13.zip / mediashare_13 / ZIPPED / PROGRAM / WTJ9403.ZIP / WILDASS / SOURCE / GRPDLG.H < prev    next >
C/C++ Source or Header  |  1993-08-12  |  2KB  |  62 lines

  1. // grpdlg.h : header file
  2. //
  3.  
  4. #include "appinfo.h"
  5.  
  6. /////////////////////////////////////////////////////////////////////////////
  7. // CAppGrpDlg dialog
  8.  
  9. class CAppGrpDlg : public CDialog
  10. {
  11. // Construction
  12. public:
  13.    CAppGrpDlg(CWnd* pParent = NULL);   // standard constructor
  14.  
  15. // Dialog Data
  16.    //{{AFX_DATA(CAppGrpDlg)
  17.    enum { IDD = IDD_APPLIST };
  18.    CStatic  m_Icon;
  19.    CListBox m_lstApps;
  20.    //}}AFX_DATA
  21.              
  22.    CApplicationList  m_ApplicationList;            
  23.    CString  m_strIconFile;
  24.    UINT     m_nIcon;
  25.              
  26. // Implementation
  27. protected:
  28.    virtual void DoDataExchange(CDataExchange* pDX);   // DDX/DDV support
  29.  
  30.    // Generated message map functions
  31.    //{{AFX_MSG(CAppGrpDlg)
  32.    virtual BOOL OnInitDialog();
  33.    afx_msg void OnClickedButton5();
  34.    afx_msg void OnClickedChangeicon();
  35.    afx_msg void OnClickedHelp1();
  36.    afx_msg void OnClickedEdit();
  37.    afx_msg void OnClickedAdd();
  38.    afx_msg void OnClickedRemove();
  39.    afx_msg void OnClickedLaunch();
  40.    afx_msg void OnDblclkListapps();
  41.    virtual void OnOK();
  42.    virtual void OnCancel();
  43.     afx_msg void OnClickedRemoveAll();
  44.     //}}AFX_MSG
  45.    DECLARE_MESSAGE_MAP() 
  46.    
  47. public: 
  48.    // return the "current" CApplication ptr, 
  49.    // that is, the CApplication that currently is to be
  50.    // displayed in an edit or add dialog
  51.    const CApplication * CurrentApplication() const;
  52.    
  53. private:
  54.    CApplication * m_pCurrent;      
  55.    // free the ItemDataPtrs that were alloted
  56.    // in OnInitDialog
  57.    void FreeItemData();
  58.    
  59.    // handle the icon display
  60.    void HandleIcon();
  61. };
  62.