home *** CD-ROM | disk | FTP | other *** search
- // -------------------------------------------------------------------------
- // Copyright @ 1997 TCK Software, Incorporated
- // All Rights Reserved
- // -------------------------------------------------------------------------
- // Example1Dlg.cpp : implementation file
- //
-
- #include "stdafx.h"
- #include "vftest.h"
- #include "Example1Dlg.h"
-
- #ifdef _DEBUG
- #define new DEBUG_NEW
- #undef THIS_FILE
- static char THIS_FILE[] = __FILE__;
- #endif
-
- /////////////////////////////////////////////////////////////////////////////
- // CExample1Dlg dialog
-
-
- CExample1Dlg::CExample1Dlg(CWnd* pParent /*=NULL*/)
- : CDialog(CExample1Dlg::IDD, pParent)
- {
- //{{AFX_DATA_INIT(CExample1Dlg)
- // NOTE: the ClassWizard will add member initialization here
- //}}AFX_DATA_INIT
- }
-
-
- void CExample1Dlg::DoDataExchange(CDataExchange* pDX)
- {
- CDialog::DoDataExchange(pDX);
- //{{AFX_DATA_MAP(CExample1Dlg)
- // NOTE: the ClassWizard will add DDX and DDV calls here
- //}}AFX_DATA_MAP
-
- // ------ Must Match up control to class (does SubclassWindow())
- // DDX_Control(pDX, IDC_VFORM1, m_ctlTestVF);
- }
-
-
- BEGIN_MESSAGE_MAP(CExample1Dlg, CDialog)
- //{{AFX_MSG_MAP(CExample1Dlg)
- ON_WM_CREATE()
- //}}AFX_MSG_MAP
- END_MESSAGE_MAP()
-
- /////////////////////////////////////////////////////////////////////////////
- // CExample1Dlg message handlers
-
- BOOL CExample1Dlg::OnInitDialog()
- {
- CDialog::OnInitDialog();
-
- m_ctlTestVF.SubclassDlgItem(IDC_VFORM1, this);
- m_ctlTestVF.Init();
-
- VBitmap* pBmp = m_ctlTestVF.GetBmp();
- if (pBmp)
- {
- if (!m_palMsgHandler.IsHooked())
- m_palMsgHandler.Install(this, pBmp->GetPalette());
- m_palMsgHandler.DoRealizePalette(m_hWnd==::GetFocus());
- }
-
- return TRUE; // return TRUE unless you set the focus to a control
- // EXCEPTION: OCX Property Pages should return FALSE
- }
-
- int CExample1Dlg::OnCreate(LPCREATESTRUCT lpCreateStruct)
- {
- // m_ctlTestVF.SubclassDlgItem(IDC_VFORM1, this);
- if (CDialog::OnCreate(lpCreateStruct) == -1)
- return -1;
-
- // TODO: Add your specialized creation code here
-
- return 0;
- }
-