
白乔

级别: VCer师长
头衔: VCer创始人
经验: 21093
作品: 513
分会: 华北分会
注册: 2003-12-01 09:20:32.0
登录: 2008-11-17 19:35:24.0
|
|
|
|
 |
 |
|
FIRE |
|
|
 |
 |
|
RES |
|
|
 |
 |
|
FIRE.ICO[1,078字节] |
 |
 |
|
FIRE.RC2[396字节] |
|
 |
 |
|
FIRE.CLW[1,573字节] |
 |
 |
|
FIRE.CPP[2,514字节] |
 |
 |
|
FIRE.DSP[6,100字节] |
 |
 |
|
FIRE.DSW[531字节] |
 |
 |
|
FIRE.H[1,331字节] |
 |
 |
|
FIRE.MAK[9,163字节] |
 |
 |
|
FIRE.OPT[48,640字节] |
 |
 |
|
FIRE.RC[5,419字节] |
 |
 |
|
FIRE.ncb[50,176字节] |
 |
 |
|
FIREDLG.CPP[11,234字节] |
 |
 |
|
FIREDLG.H[1,978字节] |
 |
 |
|
FIREWND.CPP[15,296字节] |
 |
 |
|
FIREWND.H[3,044字节] |
 |
 |
|
MAKEFILE[492字节] |
 |
 |
|
RESOURCE.H[1,050字节] |
 |
 |
|
STDAFX.CPP[519字节] |
 |
 |
|
STDAFX.H[623字节] |
 |
 |
|
fire.plg[1,703字节] |
|
|
|
|
 |
 |
|
fire.exe[36,864字节] |
|
![工程快照[14,670字节]](/upload/2007/01/1047343491292.gif)
实现方法
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捐赠一元钱,那么点击后面的捐赠按钮吧:)
|
![1082687209616[385,308字节]](/upload/2004/05/1047343491115.gif)
我得意,我用他的代码;
我自豪,他用我的代码!
|
|
|
|
[回复该贴]
[加入个人书签]
|
|