home *** CD-ROM | disk | FTP | other *** search
/ Mastering MFC Development / MMD.ISO / samples / c06 / modeless / dialogs.h < prev    next >
Encoding:
C/C++ Source or Header  |  1997-02-20  |  1.1 KB  |  50 lines

  1. // Dialogs.h : header file
  2. //
  3.  
  4. #define MY_DIALOGBOX_MSG "LWIDMsg"
  5. #define ML_APPLY 1
  6. #define ML_CANCEL 2
  7.  
  8. /////////////////////////////////////////////////////////////////////////////
  9. // CListWithItemDataDlg dialog
  10.  
  11. class CListWithItemDataDlg : public CDialog
  12. {
  13. // Construction
  14. public:
  15.     CListWithItemDataDlg(CWnd *pWnd, CWnd* pParent = NULL);
  16.  
  17. // Dialog Data
  18.     //{{AFX_DATA(CListWithItemDataDlg)
  19.     enum { IDD = IDD_PHRASE_MODELESS };
  20.     CString    m_phrase;
  21.     //}}AFX_DATA
  22.  
  23.     // Programmer added this.
  24.     COLORREF m_color;
  25.  
  26. protected:
  27.     CWnd * m_pWnd;
  28.     UINT m_UserMsg;
  29.  
  30. // Overrides
  31.     // ClassWizard generated virtual function overrides
  32.     //{{AFX_VIRTUAL(CListWithItemDataDlg)
  33.     protected:
  34.     virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
  35.     virtual void PostNcDestroy();
  36.     //}}AFX_VIRTUAL
  37.  
  38. // Implementation
  39. protected:
  40.  
  41.     // Generated message map functions
  42.     //{{AFX_MSG(CListWithItemDataDlg)
  43.     virtual BOOL OnInitDialog();
  44.     afx_msg void OnApply();
  45.     virtual void OnCancel();
  46.     afx_msg void EnableApplyButton();
  47.     //}}AFX_MSG
  48.     DECLARE_MESSAGE_MAP()
  49. };
  50.