📄 leftoption.cpp
字号:
// LeftOption.cpp : implementation file
//
#include "stdafx.h"
#include "shiyan.h"
#include "LeftOption.h"
#include "shiyanDoc.h"
#include "shiyanView.h"
#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)
// NOTE: the ClassWizard will add member initialization here
//}}AFX_DATA_INIT
}
CLeftOption::~CLeftOption()
{
}
void CLeftOption::DoDataExchange(CDataExchange* pDX)
{
CFormView::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CLeftOption)
// NOTE: the ClassWizard will add DDX and DDV calls here
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(CLeftOption, CFormView)
//{{AFX_MSG_MAP(CLeftOption)
ON_BN_CLICKED(IDC_BUTTON1, OnButton1)
//}}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::OnOK()
//{
//CShiyanDoc* pDoc = (CShiyanDoc*)CFormView::GetDocument();
//UpdateData();
//go();
//pDoc->m_nLighting = 1;
// pDoc->UpdateAllViews(this);
//PostMessage(WM_PAINT);
//CShiyanView::OnDraw(GetDlgItem(IDOK)->GetDC());
//}
void CLeftOption::stride(void)
{
if(leftarm<15)
{
leftarm=value+20;
leftforearm=value-8;
rightarm=value-15;
rightforearm=value-25;
lefthigh=value-15;
leftshank=value-1;
rightthigh=value+15;
rightshank=value+10;
}
else
{
leftarm=value-15;
leftforearm=value-25;
rightarm=value+20;
rightforearm=value-8;
lefthigh=value+15;
leftshank=value+10;
rightthigh=value-15;
rightshank=value-1;
}
}
void CLeftOption::go(void)
{
distance=distance+70;
stride();
//glutPostRedisplay();
}
void CLeftOption::OnCancel()
{
// TODO: Add your control notification handler code here
}
void CLeftOption::OnButton1()
{
// TODO: Add your control notification handler code here
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -