home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / mfc / controls / smiley / smileydg.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-03-27  |  1.8 KB  |  66 lines

  1. // SmileyDg.h : header file
  2. //
  3.  
  4. // This is a part of the Microsoft Foundation Classes C++ library.
  5. // Copyright (C) 1992-1998 Microsoft Corporation
  6. // All rights reserved.
  7. //
  8. // This source code is only intended as a supplement to the
  9. // Microsoft Foundation Classes Reference and related
  10. // electronic documentation provided with the library.
  11. // See these sources for detailed information regarding the
  12. // Microsoft Foundation Classes product.
  13.  
  14. /////////////////////////////////////////////////////////////////////////////
  15. // Definitions for CSmileCtl Event DISPIDs (used in the EVENTSINK map)
  16.  
  17. #define DISPID_CLICKOUT 1L
  18. #define DISPID_CLICKIN  2L
  19.  
  20.  
  21. /////////////////////////////////////////////////////////////////////////////
  22. // CSmileyDlg dialog
  23. //{{AFX_INCLUDES()
  24. #include "smilectl.h"
  25. //}}AFX_INCLUDES
  26.  
  27. class CSmileyDlg : public CDialog
  28. {
  29. // Construction
  30. public:
  31.     CSmileyDlg(CWnd* pParent = NULL);   // standard constructor
  32.  
  33. // Dialog Data
  34.     //{{AFX_DATA(CSmileyDlg)
  35.     enum { IDD = IDD_SMILEY_DIALOG };
  36.     CButton m_ctlSad;
  37.     CSmileCtl   m_ctlSmile;
  38.     //}}AFX_DATA
  39.  
  40.     // ClassWizard generated virtual function overrides
  41.     //{{AFX_VIRTUAL(CSmileyDlg)
  42.     protected:
  43.     virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
  44.     //}}AFX_VIRTUAL
  45.  
  46. // Implementation
  47. protected:
  48.     HICON m_hIcon;
  49.  
  50.     // Generated message map functions
  51.     //{{AFX_MSG(CSmileyDlg)
  52.     virtual BOOL OnInitDialog();
  53.     afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
  54.     afx_msg void OnPaint();
  55.     afx_msg HCURSOR OnQueryDragIcon();
  56.     afx_msg void OnLButtonDblClk(UINT, CPoint);
  57.     afx_msg void OnSad();
  58.     //}}AFX_MSG
  59.     DECLARE_MESSAGE_MAP()
  60.  
  61.     // Event Handler functions
  62.     afx_msg BOOL OnClickIn(OLE_XPOS_PIXELS x, OLE_YPOS_PIXELS y);
  63.     afx_msg BOOL OnClickOut();
  64.     DECLARE_EVENTSINK_MAP()
  65. };
  66.