资源简介
很实用的小程序。
本程序采用球形(dome)的方法,利用vc++结合opengl实现了蓝天白云的模拟。

代码片段和文件信息
// MainFrm.cpp : implementation of the CMainframe class
//
#include “stdafx.h“
#include “MyCloud.h“
#include “MainFrm.h“
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CMainframe
IMPLEMENT_DYNCREATE(CMainframe CframeWnd)
BEGIN_MESSAGE_MAP(CMainframe CframeWnd)
//{{AFX_MSG_MAP(CMainframe)
// NOTE - the ClassWizard will add and remove mapping macros here.
// DO NOT EDIT what you see in these blocks of generated code !
ON_WM_CREATE()
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
static UINT indicators[] =
{
ID_SEPARATOR // status line indicator
ID_INDICATOR_CAPS
ID_INDICATOR_NUM
ID_INDICATOR_SCRL
};
/////////////////////////////////////////////////////////////////////////////
// CMainframe construction/destruction
CMainframe::CMainframe()
{
// TODO: add member initialization code here
}
CMainframe::~CMainframe()
{
}
int CMainframe::OnCreate(LPCREATESTRUCT lpCreateStruct)
{
if (CframeWnd::OnCreate(lpCreateStruct) == -1)
return -1;
if (!m_wndToolBar.CreateEx(this TBstyle_FLAT WS_CHILD | WS_VISIBLE | CBRS_TOP
| CBRS_GRIPPER | CBRS_TOOLTIPS | CBRS_FLYBY | CBRS_SIZE_DYNAMIC) ||
!m_wndToolBar.LoadToolBar(IDR_MAINframe))
{
TRACE0(“Failed to create toolbar\n“);
return -1; // fail to create
}
if (!m_wndStatusBar.Create(this) ||
!m_wndStatusBar.SetIndicators(indicators
sizeof(indicators)/sizeof(UINT)))
{
TRACE0(“Failed to create status bar\n“);
return -1; // fail to create
}
// TODO: Delete these three lines if you don‘t want the toolbar to
// be dockable
m_wndToolBar.EnableDocking(CBRS_ALIGN_ANY);
EnableDocking(CBRS_ALIGN_ANY);
DockControlBar(&m_wndToolBar);
return 0;
}
BOOL CMainframe::PreCreateWindow(CREATESTRUCT& cs)
{
if( !CframeWnd::PreCreateWindow(cs) )
return FALSE;
// TODO: Modify the Window class or styles here by modifying
// the CREATESTRUCT cs
return TRUE;
}
/////////////////////////////////////////////////////////////////////////////
// CMainframe diagnostics
#ifdef _DEBUG
void CMainframe::AssertValid() const
{
CframeWnd::AssertValid();
}
void CMainframe::Dump(CDumpContext& dc) const
{
CframeWnd::Dump(dc);
}
#endif //_DEBUG
/////////////////////////////////////////////////////////////////////////////
// CMainframe message handlers
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 17352 2005-10-19 15:33 MyCloud\CLOUDS.BW
文件 17352 2005-10-19 15:33 MyCloud\Debug\CLOUDS.BW
文件 163968 2005-10-19 15:33 MyCloud\Debug\MyCloud.exe
文件 2508 2005-10-19 15:33 MyCloud\MainFrm.cpp
文件 1581 2005-10-19 15:33 MyCloud\MainFrm.h
文件 2291 2005-10-19 15:33 MyCloud\MyCloud.clw
文件 4227 2005-10-19 15:33 MyCloud\MyCloud.cpp
文件 4741 2005-10-19 15:33 MyCloud\MyCloud.dsp
文件 539 2005-10-19 15:33 MyCloud\MyCloud.dsw
文件 1376 2005-10-19 15:33 MyCloud\MyCloud.h
文件 107520 2005-10-19 15:33 MyCloud\MyCloud.ncb
文件 48640 2005-10-19 15:33 MyCloud\MyCloud.opt
文件 1249 2005-10-19 15:33 MyCloud\MyCloud.plg
文件 10590 2005-10-19 15:33 MyCloud\MyCloud.rc
文件 1762 2005-10-19 15:33 MyCloud\MyCloudDoc.cpp
文件 1495 2005-10-19 15:33 MyCloud\MyCloudDoc.h
文件 11295 2005-10-19 15:33 MyCloud\MyCloudView.cpp
文件 2705 2005-10-19 15:33 MyCloud\MyCloudView.h
文件 6620 2005-10-19 15:33 MyCloud\MyTexture.cpp
文件 1614 2005-10-19 15:33 MyCloud\MyTexture.h
文件 4338 2005-10-19 15:33 MyCloud\ReadMe.txt
文件 1078 2005-10-19 15:33 MyCloud\RES\MyCloud.ico
文件 399 2005-10-19 15:33 MyCloud\RES\MyCloud.rc2
文件 1078 2005-10-19 15:33 MyCloud\RES\MyCloudDoc.ico
文件 1078 2005-10-19 15:33 MyCloud\RES\Toolbar.bmp
文件 495 2005-10-19 15:33 MyCloud\Resource.h
文件 209 2005-10-19 15:33 MyCloud\StdAfx.cpp
文件 1327 2005-10-19 15:33 MyCloud\StdAfx.h
目录 0 2009-04-08 23:01 MyCloud\Debug
目录 0 2009-04-08 23:01 MyCloud\RES
............此处省略4个文件信息
- 上一篇:butterworth滤波器的c语言实现
- 下一篇:挂机锁原理与实现vc++源代码
相关资源
- VC++ 多线程文件读写操作
- 移木块游戏,可以自编自玩,vc6.0编写
- VC++MFC小游戏实例教程(实例)+MFC类库
- VC++实现CMD命令执行与获得返回信息
- 安卓c语言开发SDL2+opengles
- 交互式计算机图形学 第六版 OpenGL源代
- VC++基于OpenGL模拟的一个3维空间模型
- 基于VC++的SolidWorks二次开发SolidWorks
- 派克变换VC++源码(附文档)
- VC++ 串口
- VC++ 大富翁4_大富翁游戏源码
- VC++ 摄像头视频采集与回放源程序
- 转 VC++ 实现电子邮件(Email)发送
- opengl绘制汽车.cpp
- 基于MFC的VC++仿QQ浏览器源码(雏形)
- VC++ 服务程序编写及安装与卸载
- VC++6.0番茄西红柿VAXvirsual assist X完美破
- 基于改进的fcm算法的图像分割vc++
- VC++6.0 绿色版,免安装,非常好用。
- Microsoft Visual C++ 2005 Redistributable Pack
- VC++MFC课程设计的学生成绩管理系统
- 大智慧365DLL插件设计
- VC++6.0汉化包
- VC++完整商业界面源码(再上传)
- VC++编程技术600个大型项目源码.rar
- VC++实现RSA加密算法
- VC++ 中国象棋经典游戏源代码
- 郁金香VC++游戏辅助视频教程
- C语言进阶源码---基于graphics实现图书
- 摄影测量相对定向VC++程序
评论
共有 条评论