home *** CD-ROM | disk | FTP | other *** search
/ Mastering MFC Development / MMD.ISO / labs / c06 / lab05 / baseline / finddiff.h < prev    next >
Encoding:
C/C++ Source or Header  |  1997-02-20  |  1.4 KB  |  54 lines

  1. // FindDiff.h : header file
  2. //
  3.  
  4. const char* const FINDDIFF_MSGSTRING = "diffapp_FindDifference";
  5.  
  6. /////////////////////////////////////////////////////////////////////////////
  7. // CFindDifferenceDialog dialog
  8.  
  9. class CFindDifferenceDialog : public CDialog
  10. {
  11. // Construction
  12. public:
  13.     CFindDifferenceDialog(CWnd* pParent = NULL);   // standard constructor
  14.  
  15. // Dialog Data
  16.     //{{AFX_DATA(CFindDifferenceDialog)
  17.     enum { IDD = IDD_NEXTDIFF };
  18.         // NOTE: the ClassWizard will add data members here
  19.     //}}AFX_DATA
  20.  
  21. //attributes
  22. protected:
  23.     BOOL    m_bTerminating;
  24.     BOOL    m_bFindNext;
  25. public:
  26.     BOOL    IsTerminating() const;    //TRUE if terminating
  27.     BOOL    SearchDown() const;        //TRUE if searching down, 
  28.                                     //FALSE if searching up
  29.     BOOL    FindDifference() const; //TRUE if finding next difference
  30.                                     //FALSE if finding next equal
  31.     BOOL    FindNext() const;        //TRUE if find next button pressed
  32.  
  33. // Overrides
  34.     // ClassWizard generated virtual function overrides
  35.     //{{AFX_VIRTUAL(CFindDifferenceDialog)
  36.     public:
  37.     virtual BOOL Create();
  38.     protected:
  39.     virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
  40.     virtual void PostNcDestroy();
  41.     //}}AFX_VIRTUAL
  42.  
  43. // Implementation
  44. protected:
  45.  
  46.     // Generated message map functions
  47.     //{{AFX_MSG(CFindDifferenceDialog)
  48.     afx_msg void OnFindNext();
  49.     virtual BOOL OnInitDialog();
  50.     virtual void OnCancel();
  51.     //}}AFX_MSG
  52.     DECLARE_MESSAGE_MAP()
  53. };
  54.