www.pudn.com > 44757463.rar > GraphInfoBasicDlg.cpp
// GraphInfoBasicDlg.cpp : implementation file
//
#include "stdafx.h"
#include "graphsoft.h"
#include "GraphInfoBasicDlg.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CGraphInfoBasicDlg dialog
CGraphInfoBasicDlg::CGraphInfoBasicDlg(CWnd* pParent /*=NULL*/)
: CDialog(CGraphInfoBasicDlg::IDD, pParent)
{
//{{AFX_DATA_INIT(CGraphInfoBasicDlg)
//}}AFX_DATA_INIT
}
void CGraphInfoBasicDlg::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CGraphInfoBasicDlg)
DDX_Control(pDX, IDC_PENWIDTH_COMB, m_cmboPenWidth);
DDX_Control(pDX, IDC_FILLCOLOR_BTN, m_btnFillclr);
DDX_Control(pDX, IDC_COLOR_BTN, m_btnColor);
DDX_Control(pDX, IDC_CHECK_FILL, m_CheckFill);
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(CGraphInfoBasicDlg, CDialog)
//{{AFX_MSG_MAP(CGraphInfoBasicDlg)
ON_BN_CLICKED(IDC_CHECK_FILL, OnCheckFill)
ON_WM_CREATE()
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CGraphInfoBasicDlg message handlers
void CGraphInfoBasicDlg::OnCheckFill()
{
// TODO: Add your control notification handler code here
if(m_CheckFill.GetCheck()){
((CButton*)GetDlgItem(IDC_FILLCOLOR_BTN))->EnableWindow(TRUE);
}else{
((CButton*)GetDlgItem(IDC_FILLCOLOR_BTN))->EnableWindow(FALSE);
}
}
BOOL CGraphInfoBasicDlg::OnInitDialog()
{
CDialog::OnInitDialog();
// TODO: Add extra initialization here
m_cmboPenWidth.Init();
return TRUE; // return TRUE unless you set the focus to a control
// EXCEPTION: OCX Property Pages should return FALSE
}
int CGraphInfoBasicDlg::OnCreate(LPCREATESTRUCT lpCreateStruct)
{
if (CDialog::OnCreate(lpCreateStruct) == -1)
return -1;
// TODO: Add your specialized creation code here
return 0;
}