文件名称:mofangpgm
- 所属分类:
- 其他智力游戏
- 资源属性:
- [C/C++] [Windows] [Visual C] [源码]
- 上传时间:
- 2012-11-26
- 文件大小:
- 56kb
- 下载次数:
- 0次
- 提 供 者:
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
VC++开发的立体拧魔方模拟程序+开发文档,我们把魔方的模型建立起来了,但是这样的模型是死的,还不能按照我们的要求进行操作,现在我们就来建立魔方的仿真模型,也就是让它能够和真正的魔方一样转起来。由于我们的仿真模型将会通过VC++在Windows下面来实现,所以首先就要为转动操作建立触发事件,这样就可以利用消息机制对转动操作进行处理。
触发事件借助鼠标左、右键的按下和弹起这两个基本的消息来传递,通过鼠标点击的位置不同产生不同转动操作,而左、右键的使用则可以改变转动的方向。我们规定一个正方向,那么,左键对应正向转动,右键对应反向转动.-VC++, three-dimensional twisted cube simulation program+ development files, we cube model set up, but that model is dead, but not according to our requirements for operation, now we have to create a cube simulation model, that is, it can and, like turn up the real cube. As our simulation model will be through the VC++ on Windows to achieve the following, so we must first establish the trigger event for the turning operation, so that you can use the message mechanism of the rotation operation for processing.
Trigger event with the mouse left and right of the press and the bounce messages to these two basic transmission, depending on the location by mouse click operations produce different turn, and left and right of use can change the direction of rotation. We require a positive direction, then the corresponding positive turn left, right corresponding to reverse rotation.
触发事件借助鼠标左、右键的按下和弹起这两个基本的消息来传递,通过鼠标点击的位置不同产生不同转动操作,而左、右键的使用则可以改变转动的方向。我们规定一个正方向,那么,左键对应正向转动,右键对应反向转动.-VC++, three-dimensional twisted cube simulation program+ development files, we cube model set up, but that model is dead, but not according to our requirements for operation, now we have to create a cube simulation model, that is, it can and, like turn up the real cube. As our simulation model will be through the VC++ on Windows to achieve the following, so we must first establish the trigger event for the turning operation, so that you can use the message mechanism of the rotation operation for processing.
Trigger event with the mouse left and right of the press and the bounce messages to these two basic transmission, depending on the location by mouse click operations produce different turn, and left and right of use can change the direction of rotation. We require a positive direction, then the corresponding positive turn left, right corresponding to reverse rotation.
相关搜索: 魔方
(系统自动生成,下载前可以参看下载内容)
下载文件列表
VC开发立体的拧魔方模拟程序+开发文档\Cube.cpp
...................................\Cube.h
...................................\MainFrm.cpp
...................................\MainFrm.h
...................................\MxCubes.aps
...................................\MxCubes.clw
...................................\MxCubes.cpp
...................................\MxCubes.dsp
...................................\MxCubes.dsw
...................................\MxCubes.h
...................................\MxCubes.rc
...................................\MxCubesDoc.cpp
...................................\MxCubesDoc.h
...................................\MxCubesView.cpp
...................................\MxCubesView.h
...................................\res\cursor1.cur
...................................\...\front.cur
...................................\...\front.ico
...................................\...\MxCubes.ico
...................................\...\MxCubes.rc2
...................................\...\MxCubesDoc.ico
...................................\...\right.cur
...................................\...\right.ico
...................................\...\Toolbar.bmp
...................................\...\up.ico
...................................\Resource.h
...................................\SetStepDlg.cpp
...................................\SetStepDlg.h
...................................\StdAfx.cpp
...................................\StdAfx.h
...................................\WordBase.cpp
...................................\WordBase.h
...................................\说明.doc
...................................\res
VC开发立体的拧魔方模拟程序+开发文档
...................................\Cube.h
...................................\MainFrm.cpp
...................................\MainFrm.h
...................................\MxCubes.aps
...................................\MxCubes.clw
...................................\MxCubes.cpp
...................................\MxCubes.dsp
...................................\MxCubes.dsw
...................................\MxCubes.h
...................................\MxCubes.rc
...................................\MxCubesDoc.cpp
...................................\MxCubesDoc.h
...................................\MxCubesView.cpp
...................................\MxCubesView.h
...................................\res\cursor1.cur
...................................\...\front.cur
...................................\...\front.ico
...................................\...\MxCubes.ico
...................................\...\MxCubes.rc2
...................................\...\MxCubesDoc.ico
...................................\...\right.cur
...................................\...\right.ico
...................................\...\Toolbar.bmp
...................................\...\up.ico
...................................\Resource.h
...................................\SetStepDlg.cpp
...................................\SetStepDlg.h
...................................\StdAfx.cpp
...................................\StdAfx.h
...................................\WordBase.cpp
...................................\WordBase.h
...................................\说明.doc
...................................\res
VC开发立体的拧魔方模拟程序+开发文档