#0028 //}}AFX_MSG
#0029 DECLARE_MESSAGE_MAP()
#0030 };
PENDLG。CPP
#0001 #include 〃stdafx。h〃
#0002 #include 〃Scribble。h〃
#0003 #include 〃PenDlg。h〃
#0004
#0005 #ifdef _DEBUG
#0006 #undef THIS_FILE
#0007 static char THIS_FILE'' = __FILE__;
#0008 #endif
#0009
#0010 /////////////////////////////////////////////////////////////////
#0011 // CPenWidthsDlg dialog
#0012
#0013
#0014 CPenWidthsDlg::CPenWidthsDlg(CWnd* pParent /*=NULL*/)
#0015 : CDialog(CPenWidthsDlg::IDD; pParent)
#0016 {
#0017 //{{AFX_DATA_INIT(CPenWidthsDlg)
#0018 m_nThinWidth = 0;
#0019 m_nThickWidth = 0;
#0020 //}}AFX_DATA_INIT
#0021 }
#0022
#0023
#0024 void CPenWidthsDlg::DoDataExchange(CDataExchange* pDX)
#0025 {
#0026 CDialog::DoDataExchange(pDX);
#0027 //{{AFX_DATA_MAP(CPenWidthsDlg)
#0028 DDX_Text(pDX; IDC_THIN_PEN_WIDTH; m_nThinWidth);
#0029 DDV_MinMaxInt(pDX; m_nThinWidth; 1; 20);
#0030 DDX_Text(pDX; IDC_THICK_PEN_WIDTH; m_nThickWidth);
#0031 DDV_MinMaxInt(pDX; m_nThickWidth; 1; 20);
#0032 //}}AFX_DATA_MAP
#0033 }
#0034
#0035
#0036 BEGIN_MESSAGE_MAP(CPenWidthsDlg; CDialog)
#0037 //{{AFX_MSG_MAP(CPenWidthsDlg)
#0038 ON_BN_CLICKED(IDC_DEFAULT_PEN_WIDTHS; OnDefaultPenWidths)
#0039 //}}AFX_MSG_MAP
#0040 END_MESSAGE_MAP()
902
…………………………………………………………Page 965……………………………………………………………
附錄B Scribble Step5 完整原始碼
#0041
#0042 ////////////////////////////////////////////////////////////////
#0043 // CPenWidthsDlg message handlers
#0044
#0045 void CPenWidthsDlg::OnDefaultPenWidths()
#0046 {
#0047 m_nThinWidth = 2;
#0048 m_nThickWidth = 5;
#0049 UpdateData(FALSE); // causes DoDataExchange()
#0050 // bSave=FALSE means don"t save from screen;
#0051 // rather; write to screen
#0052 }
STDAFX。H
#0001 #include // MFC core and standard ponents
#0002 #include // MFC extensions
#0003 #include // MFC templates
#0004
#0005 #ifndef _AFX_NO_AFXCMN_SUPPORT
#0006 #include // MFC support for Windows 95 mon Controls
#0007 #endif // _AFX_NO_AFXCMN_SUPPORT
STDAFX。CPP
#0001 #include 〃stdafx。h〃
RESOURCE。H
#0001 //{{NO_DEPENDENCIES}}
#0002 // Microsoft Visual C++ generated include file。
#0003 // Used by SCRIBBLE。RC
#0004 //
#0005 #define IDD_ABOUTBOX 100
#0006 #define IDR_MAINFRAME 128
#0007 #define IDR_SCRIBBTYPE 129
#0008 #define IDD_PEN_WIDTHS 131
#0009 #define IDC_THIN_PEN_WIDTH 1000
#0010 #define IDC_THICK_PEN_WIDTH 1001
#0011 #define IDC_DEFAULT_PEN_WIDTHS 1002
#0012 #define ID_PEN_THICK_OR_THIN 32772
#0013 #define ID_PEN_WIDTHS 32773
#0014
#0015 // Next default values for new objects
#0016 //
903
…………………………………………………………Page 966……………………………………………………………
第五篇 附錄
#0017 #ifdef APSTUDIO_INVOKED
#0018 #ifndef APSTUDIO_READONLY_SYMBOLS
#0019 #define _APS_3D_CONTROLS 1
#0020 #define _APS_NEXT_RESOURCE_VALUE 132
#0021 #define _APS_NEXT_MAND_VALUE 32774
#0022 #define _APS_NEXT_CONTROL_VALUE 1003
#0023 #define _APS_NEXT_SYMED_VALUE 101
#0024 #endif
#0025 #endif
SCRIBBLE。RC
#0001 //Microsoft Developer Studio generated resource script。
#0002 //
#0003 #include 〃resource。h〃
#0004
#0005 #define APSTUDIO_READONLY_SYMBOLS
#0006 /////////////////////////////////////////////////////////////////
#0007 //
#0008 // Generated from the TEXTINCLUDE 2 resource。
#0009 //
#0010 #include 〃afxres。h〃
#0011
#0012 /////////////////////////////////////////////////////////////////
#0013 #undef APSTUDIO_READONLY_SYMBOLS
#0014
#0015 /////////////////////////////////////////////////////////////////
#0016 // English (U。S。) resources
#0017
#0018 #if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU)
#0019 #ifdef _WIN32
#0020 LANGUAGE LANG_ENGLISH; SUBLANG_ENGLISH_US
#0021 #pragma code_page(1252)
小说推荐
- Java编程思想第4版[中文版](PDF格式)
- -Page 1-Page 2《Thinking In Java》中文版作者:Bruce Eckel主页:http/BruceEckel.编译:Trans Bot主页:http/memberease~transbot致谢-献给那些直到现在仍在孜孜不倦创造下一代计算机语言的人们!指导您利用万维网的语言进
- 最新章:第295章
- VB2008从入门到精通(PDF格式英文版)
- -Page 1(R)The eXperT’s Voice inBeginningVB 2008From Novice to ProfessionalChristian Gross-Page 2-Page 3-Beginning VB 2008From Novice to Professional■C
- 最新章:第214章
- oracle从入门到精通(PDF格式)
- -Page 1-Oracle 从入门到精通-Page 2-资源来自网络,仅供学习 Oracle 从入门到精通一、SQL 8
- 最新章:第37章
- C语言游戏编程从入门到精通(PDF格式)
- -Page 1-Page 2-Page 3-Page 4-Page 5-Page 6-Page 7-Page 8-Page 9-Page 10-Page 11-Page 12-Page 13-Page 14
- 最新章:第4章
- 深入浅出
- 《深入浅出》作者:白小骨晋江VIP20140610完结+1番外非V章节总点击数:67370 总书评数:209 当前被收藏数:764 文章积分:11,386,657文案:每个前男友都是女人掉过的坑,从何典阳这个坑里往外爬的梁温暖一脸血表示,何典阳他这个深坑实在太坑爹。何典阳:我是坑?梁温暖…别看我,我
- 最新章:第74章
- 深入浅出[娱乐圈]
- 文案【忠犬影帝攻X傲娇明星受,1V1轻松甜文,前期互相试探,38章在一起后甜甜甜,两人都有细微的变化和成长~这也是我用心构思攻受感情发展的文,但数据有点太惨了,没入V可以全文免费看,还是想求点收藏呀,数据好看点吧,让我开心一下(笑哭.jpg)流量偶像白漾和影帝顾瑜祁关系很僵,传言两人出道时不合而互相
- 最新章:第59章
- JMS简明教程(PDF格式)
- -Page 1-JMS1.1规范中文版卫建军2007‐11‐22-Page 2
- 最新章:第28章
- SQL语言艺术(PDF格式)
- -Page 1-SQLSSQQLL语言艺术内容介绍本书分为12章,每一章包含许多原则或准则,并通过举例的方式对原则进行解释说明。这些例子大多来自于实际案例,对九种SQL经典查询场景以及其性能影响讨论,非常便于实践,为你数据库应用维护人员阅读。资深 SQL 专家 Stéphane Faroult倾力打
- 最新章:第27章
- C语言实例教程(PDF格式)
- -Page 1-前 言Visual C+是开发运行于Windows 95和Windows NT环境下的Win32应用程序的可视化编程工具中最重要的成员之一,它为软件开发人员提供了完整的编辑、编译和调试工具和建立于Win32 API(ApplicationProgramming Interface)基
- 最新章:第143章