文件名称:Windows-SDK
介绍说明--下载内容均来自于网络,请自行研究使用
1、学会使用VC6.0建立一个Win32 Console Application工程程序内容为屏幕上分成3行输出自己的班级、姓名、学号。
2、学会使用VC6.0建立一个Win32Application工程,把附录的程序调通,并能够运行。
3、在实验内容(2)的基础上修改程序,要求:
窗口背景的颜色为灰色(GRAY_BRUSH)
窗口标题为:“XXX上机实验”(XXX为自己的姓名);
鼠标的形状为:(IDC_HELP)
窗口起始位置为:(X=200,Y=100),窗口大小为:(宽1000,高800);
窗口显示内容为自己的学号和姓名,格式为:
学号:XXXXXXXX,姓名:XXX
调整文本的显示位置为(X=100,Y=100)
注:文本显示使用TextOut()函数
BOOL TextOut(
HDC hdc, //设备环境的句柄
int nXStart, //字符串显示的X坐标
int nYStart, //字符串显示的X坐标
LPCTSTR 1pString //所要显示的字符串
int cbString //所显示字符的长度
);
PAINTSRUCT 包含绘制信息的结构
Hdc=BeginPaint(hwnd, &ps) //做好绘制准备
TextOut(hDC,1,1"学同学们好!",9)
EndPaint(hwnd,&ps) //结束绘制工作
(4)所有运行结果都要有截图
-1, learn to use VC6.0 build a Win32 Console Application Engineering program content on the screen is divided into three lines of output their class, name, student number. 2, learn to use VC6.0 build a Win32Application project, the procedures in Appendix transferred through, and be able to run. 3, in the experimental content (2) based on the modified program requirements:
window background color is gray (GRAY_BRUSH)
window title is: "XXX-on lab" (XXX is his name)
shape of the mouse: (IDC_HELP)
window starting position is: (X = 200, Y = 100), the window size is: (width 1000, height 800)
window displays the contents of their student number and name of the format:
Student ID: XXXXXXXX, Name: XXX
adjust the display position of the text (X = 100, Y = 100)
Note: The text display using TextOut () function
BOOL TextOut ( HDC hdc,// handle to device context
2、学会使用VC6.0建立一个Win32Application工程,把附录的程序调通,并能够运行。
3、在实验内容(2)的基础上修改程序,要求:
窗口背景的颜色为灰色(GRAY_BRUSH)
窗口标题为:“XXX上机实验”(XXX为自己的姓名);
鼠标的形状为:(IDC_HELP)
窗口起始位置为:(X=200,Y=100),窗口大小为:(宽1000,高800);
窗口显示内容为自己的学号和姓名,格式为:
学号:XXXXXXXX,姓名:XXX
调整文本的显示位置为(X=100,Y=100)
注:文本显示使用TextOut()函数
BOOL TextOut(
HDC hdc, //设备环境的句柄
int nXStart, //字符串显示的X坐标
int nYStart, //字符串显示的X坐标
LPCTSTR 1pString //所要显示的字符串
int cbString //所显示字符的长度
);
PAINTSRUCT 包含绘制信息的结构
Hdc=BeginPaint(hwnd, &ps) //做好绘制准备
TextOut(hDC,1,1"学同学们好!",9)
EndPaint(hwnd,&ps) //结束绘制工作
(4)所有运行结果都要有截图
-1, learn to use VC6.0 build a Win32 Console Application Engineering program content on the screen is divided into three lines of output their class, name, student number. 2, learn to use VC6.0 build a Win32Application project, the procedures in Appendix transferred through, and be able to run. 3, in the experimental content (2) based on the modified program requirements:
window background color is gray (GRAY_BRUSH)
window title is: "XXX-on lab" (XXX is his name)
shape of the mouse: (IDC_HELP)
window starting position is: (X = 200, Y = 100), the window size is: (width 1000, height 800)
window displays the contents of their student number and name of the format:
Student ID: XXXXXXXX, Name: XXX
adjust the display position of the text (X = 100, Y = 100)
Note: The text display using TextOut () function
BOOL TextOut ( HDC hdc,// handle to device context
(系统自动生成,下载前可以参看下载内容)
下载文件列表
新建文本文档.txt