Description: 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.
To Search:
File list (Check if you may need any files):
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开发立体的拧魔方模拟程序+开发文档