home *** CD-ROM | disk | FTP | other *** search
/ Visual Basic Controls / Visual Basic Controls.iso / vbcontrol / ctlhtmlc / introdia.cpp < prev    next >
Encoding:
C/C++ Source or Header  |  1999-05-13  |  1.6 KB  |  60 lines

  1. /*---------------------------------------------------------------------------*\
  2.  | IntroDialog.cpp - CtlHTML(tm) Control Library Test Program                |
  3.  |                   Windmill Point Software, Alburg, VT 05440               |
  4.  |                   Copyright (c) 1999, Windmill Point Software             |
  5.  |                   All Rights Reserved.                                    |
  6. \*---------------------------------------------------------------------------*/
  7.  
  8. #include "stdafx.h"
  9. #include "CtlHTML Demo.h"
  10. #include "DevUI.h"
  11. #include "IntroDialog.h"
  12. #include "..\CtlHtml.h"
  13.  
  14. #ifdef _DEBUG
  15. #define new DEBUG_NEW
  16. #undef THIS_FILE
  17. static char THIS_FILE[] = __FILE__;
  18. #endif
  19.  
  20. /////////////////////////////////////////////////////////////////////////////
  21. // CIntroDialog dialog
  22.  
  23.  
  24. BEGIN_MESSAGE_MAP(CIntroDialog, CDialog)
  25.     //{{AFX_MSG_MAP(CIntroDialog)
  26.     ON_WM_ACTIVATE()
  27.     //}}AFX_MSG_MAP
  28. END_MESSAGE_MAP()
  29.  
  30. CIntroDialog::CIntroDialog(CWnd* pParent /*=NULL*/)
  31.     : CDialog(CIntroDialog::IDD, pParent)
  32. {
  33.     //{{AFX_DATA_INIT(CIntroDialog)
  34.     m_ShowIntro = TRUE;
  35.     //}}AFX_DATA_INIT
  36. }
  37.  
  38. void CIntroDialog::DoDataExchange(CDataExchange* pDX)
  39. {
  40.     CDialog::DoDataExchange(pDX);
  41.     //{{AFX_DATA_MAP(CIntroDialog)
  42.     DDX_Check(pDX, IDC_SHOWINTRO, m_ShowIntro);
  43.     //}}AFX_DATA_MAP
  44. }
  45.  
  46. BOOL CIntroDialog::OnInitDialog() 
  47. {
  48.      CDialog::OnInitDialog();
  49.    CtlHTMLSubclassDialog(m_hWnd);
  50.     return TRUE;
  51. }
  52.  
  53. void CIntroDialog::OnActivate (UINT nState, CWnd* pWndOther, BOOL bMinimized)
  54. {
  55.    CDialog::OnActivate(nState, pWndOther, bMinimized);
  56.    if (DisableControls)
  57.       CtlHTMLDialogEnable(m_hWnd, nState != WA_INACTIVE);
  58. }
  59.  
  60.