home *** CD-ROM | disk | FTP | other *** search
/ Mastering Visual Basic 5 / MasteringVisualBasic5.iso / protview / demowinx / data.2 / maskedit / samples / MFC / MASKDEMO / MASKDLG.H < prev    next >
Encoding:
C/C++ Source or Header  |  1996-10-28  |  1.4 KB  |  54 lines

  1. // MaskDlg.h : header file
  2. //
  3.  
  4. /////////////////////////////////////////////////////////////////////////////
  5. // CMaskDlg dialog
  6.  
  7. class CMaskDlg : public CDialog
  8. {
  9. // Construction
  10. public:
  11.     CMaskDlg(CWnd* pParent = NULL);    // standard constructor
  12.  
  13. // Dialog Data
  14.     //{{AFX_DATA(CMaskDlg)
  15.     enum { IDD = IDD_MASKDEMO_DIALOG };
  16.         // NOTE: the ClassWizard will add data members here
  17.     //}}AFX_DATA
  18.  
  19.     // ClassWizard generated virtual function overrides
  20.     //{{AFX_VIRTUAL(CMaskDlg)
  21.     protected:
  22.     virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
  23.     //}}AFX_VIRTUAL
  24.  
  25. // Implementation
  26. protected:
  27.     HICON m_hIcon;
  28.  
  29.     // Generated message map functions
  30.     //{{AFX_MSG(CMaskDlg)
  31.     virtual BOOL OnInitDialog();
  32.     afx_msg void OnPaint();
  33.     afx_msg HCURSOR OnQueryDragIcon();
  34.     afx_msg void OnKeyUpMaskedit1(short FAR* KeyCode, short Shift);
  35.     afx_msg void OnKeyUpMaskedit2(short FAR* KeyCode, short Shift);
  36.     afx_msg void OnKeyUpMaskedit3(short FAR* KeyCode, short Shift);
  37.     afx_msg void OnKeyUpMaskedit4(short FAR* KeyCode, short Shift);
  38.     afx_msg void OnSetmasktext();
  39.     afx_msg void OnSelchangeBackcolor();
  40.     afx_msg void OnSelchangeDisplay();
  41.     afx_msg void OnSelchangeForecolor();
  42.     afx_msg void OnSelchangeHighlightcolor();
  43.     afx_msg void OnInverted();
  44.     afx_msg void OnFlat();
  45.     afx_msg void OnBorder();
  46.     DECLARE_EVENTSINK_MAP()
  47.     //}}AFX_MSG
  48.     DECLARE_MESSAGE_MAP()
  49. private:
  50.     COLORREF GetColor(int id);
  51.     int m_iHeight;
  52.     int m_iWidth;
  53. };
  54.