资源简介
MFC课程设计1.rar
代码片段和文件信息
// LeftOption.cpp : implementation file
//
#include “stdafx.h“
#include “VRwork.h“
#include “LeftOption.h“
#include “VRworkDoc.h“
#include
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CLeftOption
IMPLEMENT_DYNCREATE(CLeftOption CFormView)
CLeftOption::CLeftOption()
: CFormView(CLeftOption::IDD)
{
//{{AFX_DATA_INIT(CLeftOption)
//}}AFX_DATA_INIT
}
CLeftOption::~CLeftOption()
{
}
void CLeftOption::DoDataExchange(CDataExchange* pDX)
{
CFormView::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CLeftOption)
DDX_Control(pDX IDC_CUR_FACE m_cCurFace);
DDX_Control(pDX IDC_SLIDER_TRANSLATE_AXIS_Z m_cTranslateZ);
DDX_Control(pDX IDC_SLIDER_TRANSLATE_AXIS_Y m_cTranslateY);
DDX_Control(pDX IDC_SLIDER_TRANSLATE_AXIS_X m_cTranslateX);
DDX_Control(pDX IDC_SLIDER_ROTATE_AXIS_Z m_cRotateZ);
DDX_Control(pDX IDC_SLIDER_ROTATE_AXIS_Y m_cRotateY);
DDX_Control(pDX IDC_SLIDER_ROTATE_AXIS_X m_cRotateX);
DDX_Control(pDX IDC_SLIDER_RADIUS m_cRadius);
DDX_Control(pDX IDC_SLIDER_FACE_COUNT m_cFaceCount);
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(CLeftOption CFormView)
//{{AFX_MSG_MAP(CLeftOption)
ON_WM_HSCROLL()
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CLeftOption diagnostics
#ifdef _DEBUG
void CLeftOption::AssertValid() const
{
CFormView::AssertValid();
}
void CLeftOption::Dump(CDumpContext& dc) const
{
CFormView::Dump(dc);
}
#endif //_DEBUG
/////////////////////////////////////////////////////////////////////////////
// CLeftOption message handlers
void CLeftOption::OnInitialUpdate()
{
CFormView::OnInitialUpdate();
// TODO: Add your specialized code here and/or call the base class
//设置左操作选择的值范围及初始值
m_cRadius.SetRange(120);
m_cRadius.SetPos(10);
m_cFaceCount.SetRange(07);
m_cFaceCount.SetPos(4);
m_cTranslateX.SetRange(010);
m_cTranslateY.SetRange(010);
m_cTranslateZ.SetRange(010);
m_cTranslateX.SetPos(1);
m_cTranslateY.SetPos(1);
m_cTranslateZ.SetPos(1);
m_cRotateX.SetRange(010);
m_cRotateY.SetRange(010);
m_cRotateZ.SetRange(010);
m_cRotateX.SetPos(1);
m_cRotateY.SetPos(1);
m_cRotateZ.SetPos(1);
CString str(““);
str.Format(“当前球体面数为:%d“(INT(8*pow(4m_cFaceCount.GetPos()))));
m_cCurFace.SetWindowText(str);
UpdateData(FALSE);
}
//DEL void CLeftOption::OnRadioLighting()
//DEL {
//DEL // TODO: Add your control notification handler code here
//DEL
//DEL }
//DEL void CLeftOption::OnRadioLighting2()
//DEL {
//DEL // TODO: Add your control notification handler code here
//DEL
//DEL }
void CLeftOption::OnHScroll(UINT nSBCode UINT nPos CScrollBar* pScrollBar)
{
// TODO: Add your message handler code here and/or call default
CVRworkDoc* pDoc = (CVRw
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 28023 2009-12-28 11:42 MFC课程设计1\Debug\LeftOption.obj
文件 9710 2009-12-28 11:42 MFC课程设计1\Debug\LeftOption.sbr
文件 22506 2009-12-28 11:42 MFC课程设计1\Debug\MainFrm.obj
文件 44479 2009-12-28 11:42 MFC课程设计1\Debug\MainFrm.sbr
文件 5596 2009-12-28 01:25 MFC课程设计1\Debug\OpenGLInit.obj
文件 37830 2009-12-28 01:25 MFC课程设计1\Debug\OpenGLInit.sbr
文件 105890 2009-12-28 01:25 MFC课程设计1\Debug\StdAfx.obj
文件 1371862 2009-12-28 01:25 MFC课程设计1\Debug\StdAfx.sbr
文件 230400 2009-12-28 11:43 MFC课程设计1\Debug\vc60.idb
文件 372736 2009-12-28 11:43 MFC课程设计1\Debug\vc60.pdb
文件 3220480 2009-11-12 14:48 MFC课程设计1\Debug\VRwork.bsc
文件 22567 2009-12-28 09:54 MFC课程设计1\Debug\VRwork.obj
文件 6873300 2009-12-28 01:25 MFC课程设计1\Debug\VRwork.pch
文件 484352 2009-12-28 11:43 MFC课程设计1\Debug\VRwork.pdb
文件 7132 2009-12-28 09:34 MFC课程设计1\Debug\VRwork.res
文件 44277 2009-12-28 09:54 MFC课程设计1\Debug\VRwork.sbr
文件 15211 2009-12-28 01:53 MFC课程设计1\Debug\VRworkDoc.obj
文件 3656 2009-12-28 01:53 MFC课程设计1\Debug\VRworkDoc.sbr
文件 29355 2009-12-28 11:43 MFC课程设计1\Debug\VRworkView.obj
文件 48091 2009-12-28 11:43 MFC课程设计1\Debug\VRworkView.sbr
文件 3726 2009-12-28 11:42 MFC课程设计1\LeftOption.cpp
文件 1872 2009-12-28 01:53 MFC课程设计1\LeftOption.h
文件 2968 2009-12-28 11:42 MFC课程设计1\MainFrm.cpp
文件 1749 2005-05-15 20:26 MFC课程设计1\MainFrm.h
文件 1887 2005-05-15 21:17 MFC课程设计1\OpenGLInit.cpp
文件 154 2005-04-22 21:04 MFC课程设计1\OpenGLInit.h
文件 4311 2005-05-15 17:27 MFC课程设计1\ReadMe.txt
文件 478 2009-12-28 01:10 MFC课程设计1\res\Toolbar.bmp
文件 1078 2005-05-15 17:27 MFC课程设计1\res\VRwork.ico
文件 398 2005-05-15 17:27 MFC课程设计1\res\VRwork.rc2
............此处省略26个文件信息
相关资源
- 提高C++性能的编程技术.pdf
- C语言项目案例分析.zip
- c与c++嵌入式系统编程.pdf
- 2018年东南大学553C、C++程序设计考研复
- C++浏览器.rar
- VC之MFC类库中文手册一怀去意.rar
- 一个可以自动点广告小程序VisualC++编
- 05年毕业设计-图像处理软件及源代码
- C语言程序设计(第三版)-谭浩强.p
- C++应用程序性能优化.pdf
- zw_vc6.0可执行源码.zip
- 数据结构与算法分析-C语言版高清源码
- C语言程序设计第四版)高清晰谭浩强
- Z00993C语言程序设计第2版何钦铭.rar
- 大规模C++程序设计2003版和2014版.zip
- C++程序设计第二版钱能.rar
- Primerc++.pdf
- 单片机C语言程序设计实训100例--基
- C语言导学.ATourofC.rar
- C++实战源码-PSD文件向其他格式转换
- VC6.0绿色win10可用.rar
- vc++和sqlserver.rar
- 谭浩强C语言程序设计第四版.zip
- DataStructuresandAlgorithmsinC++4thEditionbyAd
- MFCWinPcap编写一个嗅探器.zip
- 数据结构(C语言版)2011版本严蔚敏吴
- C语言课程设计与游戏开发实践教程
- C++多人2D坦克大战源码.rar
- 黑马最新c、c++全栈培训第24期高清无
- 剑指offer第二版书和代码c++版本.zip
评论
共有 条评论