home *** CD-ROM | disk | FTP | other *** search
- // cstm1dlg.cpp : implementation file
- //
-
- #include "stdafx.h"
- #include "Parser.h"
- #include "ProjectFilesDlg.h"
- #include "Parseraw.h"
-
- #ifdef _PSEUDO_DEBUG
- #undef THIS_FILE
- static char THIS_FILE[] = __FILE__;
- #endif
-
- /////////////////////////////////////////////////////////////////////////////
- //CProjectFilesDlg dialog
-
-
- CProjectFilesDlg::CProjectFilesDlg()
- : CAppWizStepDlg(CProjectFilesDlg::IDD)
- {
- logo_bmp.LoadBitmap(IDB_LOGO);
- //{{AFX_DATA_INIT(CProjectFilesDlg)
- m_C_or_CPP = 0;
- //}}AFX_DATA_INIT
- }
-
- void CProjectFilesDlg::OnHelp()
- {
- AfxMessageBox("AAA");
- }
-
- void CProjectFilesDlg::DoDataExchange(CDataExchange* pDX)
- {
- CAppWizStepDlg::DoDataExchange(pDX);
- //{{AFX_DATA_MAP(CProjectFilesDlg)
- DDX_Control(pDX, IDC_LOGO_BMP, m_Logo);
- DDX_Radio(pDX, IDC_CPP, m_C_or_CPP);
- //}}AFX_DATA_MAP
- }
-
- // This is called whenever the user presses Next, Back, or Finish with this step
- // present. Do all validation & data exchange from the dialog in this function.
- BOOL CProjectFilesDlg::OnDismiss()
- {
- if (!UpdateData(TRUE))
- return FALSE;
-
- // TODO: Set template variables based on the dialog's data.
-
- if (m_C_or_CPP == 1)
- Parseraw.m_Dictionary["C_ONLY"] = "YES";
- else
- Parseraw.m_Dictionary.RemoveKey("C_ONLY");
-
-
- return TRUE; // return FALSE if the dialog shouldn't be dismissed
- }
-
-
- BEGIN_MESSAGE_MAP(CProjectFilesDlg, CAppWizStepDlg)
-
- //ON_COMMAND( IDC_HELP, OnHelp )
- //{{AFX_MSG_MAP(CProjectFilesDlg)
- //}}AFX_MSG_MAP
- END_MESSAGE_MAP()
-
-
- /////////////////////////////////////////////////////////////////////////////
- // CCustom1Dlg message handlers
-
- BOOL CProjectFilesDlg::OnInitDialog()
- {
- CAppWizStepDlg::OnInitDialog();
-
- // TODO: Add extra initialization here
-
-
- m_Logo.SetBitmap(logo_bmp);
-
-
- CWnd* parent = GetParent();
- CWnd* chld = parent->GetWindow(GW_CHILD);
-
- while (parent->IsChild(chld))
- {
- CString cs;
- chld->GetWindowText(cs);
- //AfxMessageBox(cs);
- if (cs=="&Help")
- {
- break;
- //chld->ShowWindow(0);
- }
- chld = chld->GetNextWindow();
-
-
-
- }
-
- CRect rect;
- chld->GetWindowRect(rect);
-
- chld->SubclassDlgItem( 32651, this);
- // chld->ShowWindow(0);
- // CButton btn;
- // btn.Create("&Help", WS_CHILD|WS_VISIBLE|BS_PUSHBUTTON, rect, parent, 1025);
- // btn.ShowWindow(1);
-
-
- // SetHelpID(0x20096);
-
-
-
- //AfxGetApp()->WinHelp(IDD_PROJECT_FILES);
-
- return TRUE; // return TRUE unless you set the focus to a control
- // EXCEPTION: OCX Property Pages should return FALSE
- }
-