文件名称:SingleWindowDialog
- 所属分类:
- 图形图象
- 资源属性:
- [Windows] [Visual C] [源码]
- 上传时间:
- 2012-11-26
- 文件大小:
- 1.87mb
- 下载次数:
- 0次
- 提 供 者:
- 姚**
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
本程序实现的是单文档窗口程序,用户通过菜单打开一个对话框Dialog,在其中文本框输入文本,并单击“确定”按钮,在客户区输出相应文本
除此之外,还能实现定位输出文本:当单击“查看”->“Center”时文本将居中显示,当单击Left时文本将以左对齐显示,单击Right时文本将以右对齐显示,同时选择的菜单前将加上核对标记。
本实例用到的主要知识有:刷新视图的函数Invalidate()、创造字体的函数CreateFontIndirect()、CDC类处理文本的函数、输出文本的函数等、-The program implementation is a single document window procedure, the user through the menu opens a dialog box Dialog, in which the text box to enter text, and click " OK" button, the text in addition to the corresponding output of the client area, but also to achieve positioning output Text: When you click " View" -> " Center" will be centered when the text shows that when the text will left-click the Left aligned when displayed, click the Right time right-aligned text will be displayed at the same time before the menu selection with check mark. Main knowledge used in this instance are: Refresh the view function Invalidate (), create a font function CreateFontIndirect (), CDC class of text processing functions, output functions such as text,
除此之外,还能实现定位输出文本:当单击“查看”->“Center”时文本将居中显示,当单击Left时文本将以左对齐显示,单击Right时文本将以右对齐显示,同时选择的菜单前将加上核对标记。
本实例用到的主要知识有:刷新视图的函数Invalidate()、创造字体的函数CreateFontIndirect()、CDC类处理文本的函数、输出文本的函数等、-The program implementation is a single document window procedure, the user through the menu opens a dialog box Dialog, in which the text box to enter text, and click " OK" button, the text in addition to the corresponding output of the client area, but also to achieve positioning output Text: When you click " View" -> " Center" will be centered when the text shows that when the text will left-click the Left aligned when displayed, click the Right time right-aligned text will be displayed at the same time before the menu selection with check mark. Main knowledge used in this instance are: Refresh the view function Invalidate (), create a font function CreateFontIndirect (), CDC class of text processing functions, output functions such as text,
(系统自动生成,下载前可以参看下载内容)
下载文件列表
SingleWindowDialog\MainFrm.cpp
..................\MainFrm.h
..................\MyDialog.cpp
..................\MyDialog.h
..................\RCa02436
..................\ReadMe.txt
..................\resource.h
..................\SingleWindowDialog.aps
..................\SingleWindowDialog.clw
..................\SingleWindowDialog.cpp
..................\SingleWindowDialog.dsp
..................\SingleWindowDialog.dsw
..................\SingleWindowDialog.h
..................\SingleWindowDialog.ncb
..................\SingleWindowDialog.opt
..................\SingleWindowDialog.plg
..................\SingleWindowDialog.rc
..................\SingleWindowDialogDoc.cpp
..................\SingleWindowDialogDoc.h
..................\SingleWindowDialogView.cpp
..................\SingleWindowDialogView.h
..................\StdAfx.cpp
..................\StdAfx.h
..................\程序说明.txt
..................\res\SingleWindowDialog.ico
..................\...\SingleWindowDialog.rc2
..................\...\SingleWindowDialogDoc.ico
..................\...\Thumbs.db
..................\...\Toolbar.bmp
..................\Debug\MainFrm.obj
..................\.....\MyDialog.obj
..................\.....\SingleWindowDialog.exe
..................\.....\SingleWindowDialog.ilk
..................\.....\SingleWindowDialog.obj
..................\.....\SingleWindowDialog.pch
..................\.....\SingleWindowDialog.pdb
..................\.....\SingleWindowDialog.res
..................\.....\SingleWindowDialogDoc.obj
..................\.....\SingleWindowDialogView.obj
..................\.....\StdAfx.obj
..................\.....\vc60.idb
..................\.....\vc60.pdb
..................\res
..................\Debug
SingleWindowDialog
..................\MainFrm.h
..................\MyDialog.cpp
..................\MyDialog.h
..................\RCa02436
..................\ReadMe.txt
..................\resource.h
..................\SingleWindowDialog.aps
..................\SingleWindowDialog.clw
..................\SingleWindowDialog.cpp
..................\SingleWindowDialog.dsp
..................\SingleWindowDialog.dsw
..................\SingleWindowDialog.h
..................\SingleWindowDialog.ncb
..................\SingleWindowDialog.opt
..................\SingleWindowDialog.plg
..................\SingleWindowDialog.rc
..................\SingleWindowDialogDoc.cpp
..................\SingleWindowDialogDoc.h
..................\SingleWindowDialogView.cpp
..................\SingleWindowDialogView.h
..................\StdAfx.cpp
..................\StdAfx.h
..................\程序说明.txt
..................\res\SingleWindowDialog.ico
..................\...\SingleWindowDialog.rc2
..................\...\SingleWindowDialogDoc.ico
..................\...\Thumbs.db
..................\...\Toolbar.bmp
..................\Debug\MainFrm.obj
..................\.....\MyDialog.obj
..................\.....\SingleWindowDialog.exe
..................\.....\SingleWindowDialog.ilk
..................\.....\SingleWindowDialog.obj
..................\.....\SingleWindowDialog.pch
..................\.....\SingleWindowDialog.pdb
..................\.....\SingleWindowDialog.res
..................\.....\SingleWindowDialogDoc.obj
..................\.....\SingleWindowDialogView.obj
..................\.....\StdAfx.obj
..................\.....\vc60.idb
..................\.....\vc60.pdb
..................\res
..................\Debug
SingleWindowDialog