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

  1. // formatta.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. // CFormatTabDlg dialog
  15.  
  16. class CFormatTabDlg : public CCSDialog
  17. {
  18. // Construction
  19. public:
  20.     CFormatTabDlg(PARAFORMAT& pf, CWnd* pParent = NULL);    // standard constructor
  21.     ~CFormatTabDlg();
  22.     PARAFORMAT m_pf;
  23.     LONG* m_tabarray;
  24.     int m_nCount;
  25.  
  26. // Dialog Data
  27.     //{{AFX_DATA(CFormatTabDlg)
  28.     enum { IDD = IDD_FORMAT_TAB };
  29.     CButton m_buttonClearAll;
  30.     CButton m_buttonSet;
  31.     CButton m_buttonClear;
  32.     CComboBox   m_comboBox;
  33.     //}}AFX_DATA
  34.  
  35. // Implementation
  36. protected:
  37.     static const DWORD m_nHelpIDs[];
  38.     virtual const DWORD* GetHelpIDs() {return m_nHelpIDs;}
  39.     void UpdateButton(CButton& button, BOOL b);
  40.     void UpdateButtons();
  41.     BOOL Set();
  42.     BOOL AddTabToArray(LONG lTab);
  43.     BOOL RemoveTabFromArray(LONG lTab);
  44.     void RemoveTabFromArrayByIndex(int nIndex);
  45.     void UpdateListBox();
  46.     void SetEditFocus();
  47.     virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
  48.     virtual void OnOK();
  49.  
  50.     // Generated message map functions
  51.     //{{AFX_MSG(CFormatTabDlg)
  52.     afx_msg void OnClickedClear();
  53.     afx_msg void OnClickedClearAll();
  54.     afx_msg void OnClickedSet();
  55.     afx_msg void OnEditChange();
  56.     virtual BOOL OnInitDialog();
  57.     afx_msg void OnSelchange();
  58.     //}}AFX_MSG
  59.     DECLARE_MESSAGE_MAP()
  60. };
  61.