shiyan3

所属分类:Windows编程
开发工具:Visual C++
文件大小:11368KB
下载次数:1
上传日期:2016-10-08 15:34:41
上 传 者jianyoung
说明:  设计规则:假设有一个字符串为“ABCDE”, 每按下一次任意键(响应WM_KEYDOWN消息),该字符串就往前移动一格,当字符串的第一个字符碰到窗口的用户区域的边界时,该字符串就反方向移动。字符串每移动一格,颜色将随机地发生变化。 提示:假如初始状态设定字符串在(100,100)位置上,开始时A字符作为首字符向左移动,则新的位置变成(100+Δx,100),设Δx -10,重新显示整个字符串。当首字符的坐标位置小于0时,则Δx +10,字符串向右移动。说明Px和Py为两个静态的全局变量,用以记录当前字符串的坐标位置, Plen记录字符串的长度。所用到的API函数可以参照作业一和作业二。
(Design rule: Suppose there is a string ABCDE , each press any key (in response to WM_KEYDOWN message), the string to move forward a grid, when the first character string hit the user area of the window Boundary, the string moves in the opposite direction. As each string moves, the color will change randomly. Note: If the initial state setting string is in the (100,100) position, and the A character starts to move to the left as the first character, the new position becomes (100+ Δx, 100), and Δx -10. Displays the entire string. When the coordinate position of the first character is less than 0, Δx + 10, and the character string moves to the right. Description Px and Py are two static global variables used to record the coordinates of the current position of the string, Plen record the length of the string. The API functions used can refer to job one and job two.)

文件列表:
.vs (0, 2016-09-28)
.vs\E1 (0, 2016-09-28)
.vs\E1\v14 (0, 2016-09-28)
.vs\E1\v14\.suo (34816, 2016-10-03)
afxres.H (33300, 2016-09-01)
Debug (0, 2016-10-05)
Debug\E1.Build.CppClean.log (1658, 2016-09-28)
Debug\E1.exe (781824, 2016-10-03)
Debug\E1.ilk (1824096, 2016-10-03)
Debug\E1.log (141, 2016-10-03)
Debug\E1.pdb (6041600, 2016-10-03)
Debug\E1.tlog (0, 2016-10-05)
Debug\E1.tlog\CL.command.1.tlog (1354, 2016-10-03)
Debug\E1.tlog\CL.read.1.tlog (41072, 2016-10-03)
Debug\E1.tlog\CL.write.1.tlog (926, 2016-10-03)
Debug\E1.tlog\E1.lastbuildstate (215, 2016-10-03)
Debug\E1.tlog\link.command.1.tlog (2342, 2016-10-03)
Debug\E1.tlog\link.read.1.tlog (6488, 2016-10-03)
Debug\E1.tlog\link.write.1.tlog (1150, 2016-10-03)
Debug\E1.tlog\rc.command.1.tlog (762, 2016-10-03)
Debug\E1.tlog\rc.read.1.tlog (4594, 2016-10-03)
Debug\E1.tlog\rc.write.1.tlog (466, 2016-10-03)
Debug\hellowin.obj (18985, 2016-10-03)
Debug\resource.res (84, 2016-10-03)
Debug\vc140.idb (379904, 2016-10-03)
Debug\vc140.pdb (94208, 2016-10-03)
E1.dsp (4039, 2016-07-19)
E1.dsw (527, 2016-07-19)
E1.ncb (41984, 2016-07-19)
E1.opt (53760, 2016-07-19)
E1.plg (1160, 2016-07-19)
E1.sln (898, 2016-09-04)
E1.VC.db (25677824, 2016-10-03)
E1.vcxproj (6970, 2016-09-23)
E1.vcxproj.filters (1165, 2016-09-04)
hellowin.c (3842, 2016-09-28)
resource.aps (16884, 2016-09-21)
resource.h (457, 2016-07-19)
resource.rc (1645, 2016-07-19)

近期下载者

相关文件


收藏者