资源简介

VC++期末考试的项目-_-!为了考试完成的,还有几个功能没实现不过画板的倒是做完了,嘿嘿!

资源截图

代码片段和文件信息

// penSetDlg.cpp : implementation file
//

#include “stdafx.h“
#include “付超 071304014.h“
#include “penSetDlg.h“

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// CpenSetDlg dialog


CpenSetDlg::CpenSetDlg(CWnd* pParent /*=NULL*/)
: CDialog(CpenSetDlg::IDD pParent)
{
//{{AFX_DATA_INIT(CpenSetDlg)
m_width = 0;
//}}AFX_DATA_INIT
}


void CpenSetDlg::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CpenSetDlg)
DDX_Control(pDX IDC_COMBO m_combo);
DDX_Text(pDX IDC_EDIT m_width);
//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(CpenSetDlg CDialog)
//{{AFX_MSG_MAP(CpenSetDlg)
ON_BN_CLICKED(IDC_COLOR_BUTTON OnColorButton)
ON_CBN_SELCHANGE(IDC_COMBO OnSelchangeCombo)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CpenSetDlg message handlers

void CpenSetDlg::OnColorButton() 
{
// TODO: Add your control notification handler code here
CColorDialog dlg;
if(dlg.DoModal()==IDOK)
color=dlg.GetColor();
}

BOOL CpenSetDlg::OnInitDialog() 
{
CDialog::OnInitDialog();

// TODO: Add extra initialization here
CString a[]={“实线““虚线““点线“};
for(int i=0;i<3;i++)
m_combo.InsertString(ia[i]);
return TRUE;  // return TRUE unless you set the focus to a control
              // EXCEPTION: OCX Property Pages should return FALSE
}

void CpenSetDlg::OnSelchangeCombo() 
{
// TODO: Add your control notification handler code here
int index=m_combo.GetCurSel();
m_combo.GetLBText(indexstr);
if(str==“实线“)
penstyl=PS_SOLID;
else if(str==“虚线“)
penstyl=PS_DASH;
else
penstyl=PS_DOT;
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件      19070  2009-06-03 16:54  付超 071304014\Debug\penSetDlg.obj

     文件     105886  2009-06-03 14:20  付超 071304014\Debug\StdAfx.obj

     文件     222208  2009-06-03 16:58  付超 071304014\Debug\vc60.idb

     文件     364544  2009-06-03 16:58  付超 071304014\Debug\vc60.pdb

     文件     110693  2009-06-03 16:58  付超 071304014\Debug\付超 071304014.exe

     文件     246152  2009-06-03 16:58  付超 071304014\Debug\付超 071304014.ilk

     文件      14539  2009-06-03 16:58  付超 071304014\Debug\付超 071304014.obj

     文件    5502316  2009-06-03 14:20  付超 071304014\Debug\付超 071304014.pch

     文件     402432  2009-06-03 16:58  付超 071304014\Debug\付超 071304014.pdb

     文件       4796  2009-06-03 16:35  付超 071304014\Debug\付超 071304014.res

     文件      32685  2009-06-03 16:58  付超 071304014\Debug\付超 071304014Dlg.obj

     文件       1828  2009-06-03 16:54  付超 071304014\penSetDlg.cpp

     文件       1348  2009-06-03 16:43  付超 071304014\penSetDlg.h

     文件       3714  2009-06-03 14:11  付超 071304014\ReadMe.txt

     文件       1078  2009-06-03 14:20  付超 071304014\res\付超 071304014.ico

     文件        406  2009-06-03 14:11  付超 071304014\res\付超 071304014.rc2

     文件       2860  2009-06-03 15:14  付超 071304014\resource.h

     文件        216  2009-06-03 14:11  付超 071304014\StdAfx.cpp

     文件       1054  2009-06-03 14:11  付超 071304014\StdAfx.h

     文件      39452  2009-06-03 16:34  付超 071304014\付超 071304014.aps

     文件       3749  2009-06-03 16:56  付超 071304014\付超 071304014.clw

     文件       2142  2009-06-03 14:11  付超 071304014\付超 071304014.cpp

     文件       4444  2009-06-03 16:35  付超 071304014\付超 071304014.dsp

     文件        553  2009-06-03 14:11  付超 071304014\付超 071304014.dsw

     文件       1382  2009-06-03 14:11  付超 071304014\付超 071304014.h

     文件      66560  2009-06-03 16:59  付超 071304014\付超 071304014.ncb

     文件      55808  2009-06-03 16:59  付超 071304014\付超 071304014.opt

     文件       1393  2009-06-03 16:58  付超 071304014\付超 071304014.plg

     文件       9785  2009-06-03 16:34  付超 071304014\付超 071304014.rc

     文件       5884  2009-06-03 16:59  付超 071304014\付超 071304014Dlg.cpp

............此处省略7个文件信息

评论

共有 条评论