MoveMeshDlg.cpp
资源名称:3dwind2.0.rar [点击查看]
上传用户:xhbjoy
上传日期:2014-10-07
资源大小:38068k
文件大小:1k
源码类别:
游戏引擎
开发平台:
Visual C++
- // MoveMeshDlg.cpp : 实现文件
- //
- #include "stdafx.h"
- #include "OGRESceneMgr.h"
- #include "MoveMeshDlg.h"
- #include ".movemeshdlg.h"
- // MoveMeshDlg 对话框
- IMPLEMENT_DYNAMIC(MoveMeshDlg, CDialog)
- MoveMeshDlg::MoveMeshDlg(CWnd* pParent /*=NULL*/)
- : CDialog(MoveMeshDlg::IDD, pParent)
- , ZiDingyiBuchang(0)
- {
- slidebuchang=true;
- }
- MoveMeshDlg::~MoveMeshDlg()
- {
- }
- void MoveMeshDlg::DoDataExchange(CDataExchange* pDX)
- {
- CDialog::DoDataExchange(pDX);
- DDX_Control(pDX, IDC_SLIDER2, MoveBuChang);
- DDX_Text(pDX, IDC_EDIT1, ZiDingyiBuchang);
- DDX_Control(pDX, IDC_STATIC_BUCHANG, NowBuChang);
- }
- BEGIN_MESSAGE_MAP(MoveMeshDlg, CDialog)
- ON_BN_CLICKED(IDC_BUTTON1, OnBnMoveMeshDlg)
- ON_NOTIFY(NM_CUSTOMDRAW, IDC_SLIDER2, OnNMCustomdrawSlider2)
- END_MESSAGE_MAP()
- // MoveMeshDlg 消息处理程序
- void MoveMeshDlg::OnBnMoveMeshDlg()
- {
- // TODO: 在此添加控件通知处理程序代码
- slidebuchang=false;
- }
- void MoveMeshDlg::OnNMCustomdrawSlider2(NMHDR *pNMHDR, LRESULT *pResult)
- {
- LPNMCUSTOMDRAW pNMCD = reinterpret_cast<LPNMCUSTOMDRAW>(pNMHDR);
- // TODO: 在此添加控件通知处理程序代码
- int slidenow=MoveBuChang.GetPos();
- slidenow=slidenow/2;
- CString slistrnow;
- slistrnow.Format("%d",slidenow);
- // NowBuChang.SetDlgItemText(slistrnow);
- //this->GetDlgItem(IDC_STATIC_BUCHANG)->SetDlgItemText(
- this->SetDlgItemText(IDC_STATIC_BUCHANG,slistrnow);
- *pResult = 0;
- }