• 大小: 3.54M
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2023-09-19
  • 语言: C/C++
  • 标签: 其他  

资源简介

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个文件信息

评论

共有 条评论