目前位置: VCer资源中心 >>> VCer开源 >>> 游戏娱乐

[本帖已阅读1957次 分值100 回复0次] 张贴资源 发回信箱 控制面板

FIRE: Demonstrates Windows 95 Common Controls

提供者:bluejoe 张贴时间:2007-01-23 13:09:41.0 出处:msdn2000 作者:M$

FIRE: Demonstrates Windows 95 Common Controls(2007-01-23 13:09:41.0)


白乔


 
级别: VCer师长
头衔: VCer创始人

经验: 21093
作品: 513
分会: 华北分会
注册: 2003-12-01 09:20:32.0
登录: 2008-11-17 19:35:24.0
工程源码[28,675字节] 下载133
软件下载[12,092字节] 下载43

实现方法

FIRE is a Windows® 95 Common Controls dialog-based sample application. It simulates fire and allows you to change various properties of the fire by adjusting Windows Common Controls on the dialog.

When you run FIRE, the Windows 95 Fire dialog box appears.

To change attributes of the fire, do any of the following.

  • Click Tab to change the palette that renders the fire.
  • Click and drag Vertical Slider along the right side of the fire to adjust the ceiling of the flames. Note the Progress Indicator control below the fire that tells you when the adjustment is complete.

To use the Tree control

  • Click one of the leaf nodes: Decay, Flammability, Maximum Heat, Spread Rate, or Size under the Fire node, or Smoothness, Distribution, or Chaos under the Render node.
  • Use the up and down arrows to adjust the value that appears in the Spin control.
  • Click Apply to update the value and watch the fire change accordingly.


This sample demonstrates the following keywords:

AfxGetApp; BitBlt; CDC::BitBlt; CDC::CreateCompatibleDC; CDC::DrawIcon; CDC::GetSafeHdc; CDC::RealizePalette; CDC::SelectObject; CDC::SelectPalette; CDialog::DoModal; CDialog::OnInitDialog; CGdiObject::Attach; CGdiObject::DeleteObject; CGdiObject::GetObject; CMenu::AppendMenu; CRect::Height; CRect::Size; CRect::Width; CString::IsEmpty; CString::LoadString; CWinApp::Enable3dControls; CWinApp::InitInstance; CWinApp::LoadStdProfileSettings; CWnd::CenterWindow; CWnd::DoDataExchange; CWnd::EnableWindow; CWnd::GetClientRect; CWnd::GetCurrentMessage; CWnd::Invalidate; CWnd::IsChild; CWnd::IsIconic; CWnd::KillTimer; CWnd::OnActivate; CWnd::OnDestroy; CWnd::OnHScroll; CWnd::OnPaint; CWnd::OnPaletteChanged; CWnd::OnQueryDragIcon; CWnd::OnQueryNewPalette; CWnd::OnSysCommand; CWnd::OnTimer; CWnd::SendMessage; CWnd::UpdateData; CreateBitmap; CreateDIBSection; CreatePalette; DeleteObject; EnableWindow; GetActiveWindow; GetSystemMenu; GetSystemMetrics; LoadIcon; PeekMessage; RealizePalette; SelectPalette; SetTimer; memcpy; rand

注:转载文章需注明来源:VCer.net 文章地址:http://vcer.net/1169528816609.html

  如果你觉得VCer.net不错,而且你愿意为VCer.net捐赠一元钱,那么点击后面的捐赠按钮吧:) vcer.net捐赠

1082687209616[385,308字节]

得意,我用他的代码;

自豪,他用我的代码!

[回复该贴] [加入个人书签]
[投票结果]

A: 评分 10 0% (0 票)
B: 评分 5 0% (0 票)
C: 评分 0 0% (0 票)
D: 评分 -5 0% (0 票)
E: 评分 -10 0% (0 票)