home *** CD-ROM | disk | FTP | other *** search
/ PC Answers 1995 May / PC Answers CD-ROM 7 (Future Publishing) (May 1995).iso / vbits / code / shaw / vbits32 / newdialo.cpp < prev    next >
Encoding:
C/C++ Source or Header  |  1994-12-13  |  1.1 KB  |  49 lines

  1. // newdialo.cpp : implementation file
  2. //
  3.  
  4. #include "stdafx.h"
  5. #include "vbits32.h"
  6. #include "newdialo.h"
  7.  
  8. #ifdef _DEBUG
  9. #undef THIS_FILE
  10. static char BASED_CODE THIS_FILE[] = __FILE__;
  11. #endif
  12.  
  13. /////////////////////////////////////////////////////////////////////////////
  14. // CNewDialog dialog
  15.  
  16.  
  17. CNewDialog::CNewDialog(CWnd* pParent /*=NULL*/)
  18.     : CDialog(CNewDialog::IDD, pParent)
  19. {
  20.     //{{AFX_DATA_INIT(CNewDialog)
  21.         // NOTE: the ClassWizard will add member initialization here
  22.     //}}AFX_DATA_INIT
  23. }
  24.  
  25.  
  26. void CNewDialog::DoDataExchange(CDataExchange* pDX)
  27. {
  28.     CDialog::DoDataExchange(pDX);
  29.     //{{AFX_DATA_MAP(CNewDialog)
  30.         // NOTE: the ClassWizard will add DDX and DDV calls here
  31.     //}}AFX_DATA_MAP
  32. }
  33.  
  34.  
  35. BEGIN_MESSAGE_MAP(CNewDialog, CDialog)
  36.     //{{AFX_MSG_MAP(CNewDialog)
  37.     ON_BN_CLICKED(IDC_SayHello, OnSayHello)
  38.     //}}AFX_MSG_MAP
  39. END_MESSAGE_MAP()
  40.  
  41.  
  42. /////////////////////////////////////////////////////////////////////////////
  43. // CNewDialog message handlers
  44.  
  45. void CNewDialog::OnSayHello() 
  46. {
  47.     MessageBox("Hello to new VC++ developers!");    
  48. }
  49.