• 大小: 1.8MB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2021-01-05
  • 标签: MFC  

资源简介

1.创建一个基于对话框的应用程序ex1。 ⑴将对话框的标题改为问卷调查; ⑵添加一个组框,组框的标题为“你的年龄”,在组框中添加三个单选按钮,标题分别为“<18”、“18-22”和“>22”; ⑶添加一个静态文本控件,标题为“你的性别:”,添加两个单选按钮,标题分别为“男”、“女”; ⑷添加一个组框,组框的标题为“你的爱好”,在组框中添加三个复选按钮,标题分别为“运动”、“上网”、“看书”; ⑸设置单选按钮的初始状态为:“18-20”、“男”; ⑹单击“确定”按钮时,出现一个消息框,显示选择的内容。

资源截图

代码片段和文件信息

// ex1.cpp : Defines the class behaviors for the application.
//

#include “stdafx.h“
#include “ex1.h“
#include “ex1Dlg.h“

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

/////////////////////////////////////////////////////////////////////////////
// CEx1App

BEGIN_MESSAGE_MAP(CEx1App CWinApp)
//{{AFX_MSG_MAP(CEx1App)
// NOTE - the ClassWizard will add and remove mapping macros here.
//    DO NOT EDIT what you see in these blocks of generated code!
//}}AFX_MSG
ON_COMMAND(ID_HELP CWinApp::onhelp)
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CEx1App construction

CEx1App::CEx1App()
{
// TODO: add construction code here
// Place all significant in

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

     文件     110654  2009-06-22 13:46  实验一\Debug\ex1.exe

     文件     191984  2009-06-22 13:46  实验一\Debug\ex1.ilk

     文件      12814  2009-06-22 13:46  实验一\Debug\ex1.obj

     文件    5563420  2009-06-22 13:46  实验一\Debug\ex1.pch

     文件     369664  2009-06-22 13:46  实验一\Debug\ex1.pdb

     文件       2844  2009-06-10 13:56  实验一\Debug\ex1.res

     文件      27360  2009-06-22 13:46  实验一\Debug\ex1Dlg.obj

     文件     105566  2009-06-22 13:46  实验一\Debug\StdAfx.obj

     文件     205824  2009-06-22 13:46  实验一\Debug\vc60.idb

     文件     364544  2009-06-22 13:46  实验一\Debug\vc60.pdb

     文件      21240  2009-06-10 21:17  实验一\ex1.aps

     文件       1435  2009-06-10 21:29  实验一\ex1.clw

     文件       2021  2009-06-09 23:15  实验一\ex1.cpp

     文件       4105  2009-06-09 23:15  实验一\ex1.dsp

     文件        531  2009-06-09 23:15  实验一\ex1.dsw

     文件       1291  2009-06-09 23:15  实验一\ex1.h

     文件      74752  2009-06-22 13:47  实验一\ex1.ncb

     文件      48640  2009-06-22 13:47  实验一\ex1.opt

     文件       1405  2009-06-22 13:46  实验一\ex1.plg

     文件       6136  2009-06-10 13:56  实验一\ex1.rc

     文件       4967  2009-06-10 13:56  实验一\ex1Dlg.cpp

     文件       1332  2009-06-10 13:54  实验一\ex1Dlg.h

     文件       3525  2009-06-09 23:15  实验一\ReadMe.txt

     文件       1078  2009-06-09 23:15  实验一\res\ex1.ico

     文件        395  2009-06-09 23:15  实验一\res\ex1.rc2

     文件       1003  2009-06-10 13:52  实验一\resource.h

     文件        205  2009-06-09 23:15  实验一\StdAfx.cpp

     文件       1054  2009-06-09 23:15  实验一\StdAfx.h

     目录          0  2009-06-22 13:46  实验一\Debug

     目录          0  2009-06-10 13:57  实验一\res

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

评论

共有 条评论