- solidgraph_sources.zip
- solidgraph_sources
- ArMaX
- Boolean
- CxImage
- Debug
- DraftTemplates
- DT1.sdt
- DT2.sdt
- sgCore.dll
- ExGUILib
- jpeg
- Kinematic
- lua
- MaterialsEditor
- png
- Release
- sgCore.dll
- Scripts
- boxes.sgs
- circles.sgs
- cones.sgs
- cylinders.sgs
- ellipsoids.sgs
- lines.sgs
- points.sgs
- print.sgs
- Script.sgs
- spBands.sgs
- spheres.sgs
- toruses.sgs
- sgCore
- Solidgraph.sln
- Solidgraph
- SplashLib
- Standard2D
- arc.bmp
- circ.bmp
- Commands
- Dialogs
- line.bmp
- path.bmp
- pnt.bmp
- ReadMe.txt
- res
- circ_3p.bmp
- circ_c_r.bmp
- circ_edit_cen.bmp
- circ_edit_norm.bmp
- circ_edit_rad.bmp
- line_arc_end.bmp
- line_arc_perpendic_end.bmp
- line_edit.bmp
- line_line_extension.bmp
- line_line_perpendic_end.bmp
- line_point_increment.bmp
- line_point_vector.bmp
- line_two_points.bmp
- pnt_edit.bmp
- Spline_edit.bmp
- Standard2D.rc2
- resource.h
- spl.bmp
- Standard2D.cpp
- Standard2D.def
- Standard2D.rc
- Standard2D.vcproj
- StdAfx.cpp
- StdAfx.h
- toolbar.bmp
- toolbarBMP.bmp
- toolbarBMPOld.bmp
- Standard3D
- Surfaces
- tiff
- zlib
- solidgraph_bin.zip
- solidgraph_bin
- DraftTemplates
- DT1.sdt
- DT2.sdt
- Plugins
- Boolean.ppl
- Kinematic.ppl
- Standard2D.ppl
- Standard3D.ppl
- Surfaces.ppl
- sgCore.dll
- Solidgraph.exe
- SplashLib.dll
|
// ContScenarDlg.cpp : implementation file
//
#include "stdafx.h"
#include "ContScenarDlg.h"
#include ".\contscenardlg.h"
// CContScenarDlg dialog
IMPLEMENT_DYNAMIC(CContScenarDlg, CDialog)
CContScenarDlg::CContScenarDlg(CWnd* pParent /*=NULL*/)
: CDialog(CContScenarDlg::IDD, pParent)
{
m_commander = NULL;
}
CContScenarDlg::~CContScenarDlg()
{
}
void CContScenarDlg::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
}
BEGIN_MESSAGE_MAP(CContScenarDlg, CDialog)
ON_BN_CLICKED(IDC_CONT_SCENARS_RADIO1, OnBnClickedContScenarsRadio1)
ON_BN_CLICKED(IDC_CONT_SCENARS_RADIO2, OnBnClickedContScenarsRadio2)
ON_WM_CTLCOLOR()
ON_WM_ERASEBKGND()
END_MESSAGE_MAP()
// CContScenarDlg message handlers
void CContScenarDlg::OnBnClickedContScenarsRadio1()
{
if (m_commander)
m_commander->SwitchScenario(0);
/*else
ASSERT(0);*/
}
void CContScenarDlg::OnBnClickedContScenarsRadio2()
{
if (m_commander)
m_commander->SwitchScenario(1);
/*else
ASSERT(0);*/
}
BOOL CContScenarDlg::OnInitDialog()
{
__super::OnInitDialog();
((CButton*)GetDlgItem(IDC_CONT_SCENARS_RADIO1))->SetState(TRUE);
((CButton*)GetDlgItem(IDC_CONT_SCENARS_RADIO2))->SetState(FALSE);
return TRUE; // return TRUE unless you set the focus to a control
// EXCEPTION: OCX Property Pages should return FALSE
}
HBRUSH CContScenarDlg::OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor)
{
HBRUSH hbr = __super::OnCtlColor(pDC, pWnd, nCtlColor);
pDC->SetTextColor(0);
//pDC->SetBkColor(RGB(255,255,255));
pDC->SetBkMode(TRANSPARENT);
hbr = (HBRUSH)GetStockObject(HOLLOW_BRUSH);
// TODO: Return a different brush if the default is not desired
return hbr;
}
BOOL CContScenarDlg::OnEraseBkgnd(CDC* pDC)
{
// TODO: Add your message handler code here and/or call default
return TRUE;//__super::OnEraseBkgnd(pDC);
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.
A list of licenses authors might use can be found here
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.