home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / mfc / database / daotable / addixdlg.h < prev    next >
C/C++ Source or Header  |  1998-03-26  |  2KB  |  70 lines

  1. // AddIxDlg.h : header file
  2. //
  3. // This is a part of the Microsoft Foundation Classes C++ library.
  4. // Copyright (C) 1992-1998 Microsoft Corporation
  5. // All rights reserved.
  6. //
  7. // This source code is only intended as a supplement to the
  8. // Microsoft Foundation Classes Reference and related
  9. // electronic documentation provided with the library.
  10. // See these sources for detailed information regarding the
  11. // Microsoft Foundation Classes product.
  12.  
  13. /////////////////////////////////////////////////////////////////////////////
  14. // CAddIndexDlg dialog
  15.  
  16. class CAddIndexDlg : public CDialog
  17. {
  18. // Construction
  19. public:
  20.     void setFieldListSelections(BOOL bJustClear = FALSE);
  21.     void initializer();
  22.     void indexInitializer();
  23.     CAddIndexDlg(CDaoDatabase *pDatabase, CString strTableName,
  24.                  CWnd* pParent = NULL);
  25.     CAddIndexDlg(CWnd* pParent = NULL);   // standard constructor
  26.     CDaoTableDef *m_pTableDef;
  27.     CDaoDatabase *m_pDatabase;
  28.     BOOL m_bCheckDDV;
  29.     CDaoIndexInfo m_II;
  30.     int m_nIndexIndex;
  31.     void disableControlsForExisting(BOOL bDisable = TRUE);
  32.     void DDV_NoSel(CDataExchange* pDX, CListCtrl *theControl);
  33.     void populateFieldList();
  34.     void createFieldArray(CDaoIndexFieldInfo **pFields, short *nFields);
  35.  
  36.     // Dialog Data
  37.     //{{AFX_DATA(CAddIndexDlg)
  38.     enum { IDD = IDD_ADD_INDEX_DLG };
  39.     CFieldListCtrl  m_FieldListListControl;
  40.     CButton m_DescendingControl;
  41.     CButton m_UniqueControl;
  42.     CButton m_RequiredControl;
  43.     CButton m_IgnoreNullControl;
  44.     CButton m_PrimaryControl;
  45.     CString m_strTableName;
  46.     //}}AFX_DATA
  47.  
  48. // Overrides
  49.     // ClassWizard generated virtual function overrides
  50.     //{{AFX_VIRTUAL(CAddIndexDlg)
  51.     protected:
  52.     virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
  53.     //}}AFX_VIRTUAL
  54.  
  55. // Implementation
  56. protected:
  57.  
  58.     // Generated message map functions
  59.     //{{AFX_MSG(CAddIndexDlg)
  60.     virtual BOOL OnInitDialog();
  61.     afx_msg void OnDone();
  62.     afx_msg void OnClose();
  63.     afx_msg void OnAddIndex();
  64.     afx_msg void OnDeleteIndex();
  65.     afx_msg void OnNextIndex();
  66.     afx_msg void OnPreviousIndex();
  67.     //}}AFX_MSG
  68.     DECLARE_MESSAGE_MAP()
  69. };
  70.