home *** CD-ROM | disk | FTP | other *** search
/ CD Actual Thematic 25: Programming / pc_actual_25.iso / C_C++ / BisonFlexWizard / data1.cab / Src / Wizard / HelpButton.cpp < prev    next >
Encoding:
C/C++ Source or Header  |  2000-01-16  |  847 b   |  46 lines

  1. // HelpButton.cpp : implementation file
  2. //
  3.  
  4. #include "stdafx.h"
  5. #include "Parser.h"
  6. #include "HelpButton.h"
  7.  
  8. #ifdef _DEBUG
  9. #define new DEBUG_NEW
  10. #undef THIS_FILE
  11. static char THIS_FILE[] = __FILE__;
  12. #endif
  13.  
  14. /////////////////////////////////////////////////////////////////////////////
  15. // HelpButton
  16.  
  17. HelpButton::HelpButton()
  18. {
  19. }
  20.  
  21. HelpButton::~HelpButton()
  22. {
  23. }
  24.  
  25.  
  26. BEGIN_MESSAGE_MAP(HelpButton, CButton)
  27.     //{{AFX_MSG_MAP(HelpButton)
  28.     ON_WM_CREATE()
  29.     //}}AFX_MSG_MAP
  30. END_MESSAGE_MAP()
  31.  
  32. /////////////////////////////////////////////////////////////////////////////
  33. // HelpButton message handlers
  34.  
  35. int HelpButton::OnCreate(LPCREATESTRUCT lpCreateStruct) 
  36. {
  37.     if (CButton::OnCreate(lpCreateStruct) == -1)
  38.         return -1;
  39.     
  40.     // TODO: Add your specialized creation code here
  41.     
  42.     SetWindowText("&Help");
  43.  
  44.     return 0;
  45. }
  46.