Code/Resource
Windows Develop
Linux-Unix program
Internet-Socket-Network
Web Server
Browser Client
Ftp Server
Ftp Client
Browser Plugins
Proxy Server
Email Server
Email Client
WEB Mail
Firewall-Security
Telnet Server
Telnet Client
ICQ-IM-Chat
Search Engine
Sniffer Package capture
Remote Control
xml-soap-webservice
P2P
WEB(ASP,PHP,...)
TCP/IP Stack
SNMP
Grid Computing
SilverLight
DNS
Cluster Service
Network Security
Communication-Mobile
Game Program
Editor
Multimedia program
Graph program
Compiler program
Compress-Decompress algrithms
Crypt_Decrypt algrithms
Mathimatics-Numerical algorithms
MultiLanguage
Disk/Storage
Java Develop
assembly language
Applications
Other systems
Database system
Embeded-SCM Develop
FlashMX/Flex
source in ebook
Delphi VCL
OS Develop
MiddleWare
MPI
MacOS develop
LabView
ELanguage
Software/Tools
E-Books
Artical/Document
CongraduationDlg.cpp
Package: Fly ight.zip [view]
Upload User: baina_li
Upload Date: 2013-03-23
Package Size: 960k
Code Size: 2k
Category:
Shot Game
Development Platform:
Visual C++
- // CongraduationDlg.cpp : implementation file
- //
- #include "stdafx.h"
- #include <mmsystem.h>
- #include "fighter.h"
- #include "CongraduationDlg.h"
- #ifdef _DEBUG
- #define new DEBUG_NEW
- #undef THIS_FILE
- static char THIS_FILE[] = __FILE__;
- #endif
- /////////////////////////////////////////////////////////////////////////////
- // CCongraduationDlg dialog
- CCongraduationDlg::CCongraduationDlg(CWnd* pParent /*=NULL*/)
- : CDialog(CCongraduationDlg::IDD, pParent)
- {
- //{{AFX_DATA_INIT(CCongraduationDlg)
- m_strPercentage = _T("");
- m_strName = _T("");
- m_nBomb = 0;
- //}}AFX_DATA_INIT
- m_bSound = TRUE;
- }
- void CCongraduationDlg::DoDataExchange(CDataExchange* pDX)
- {
- CDialog::DoDataExchange(pDX);
- //{{AFX_DATA_MAP(CCongraduationDlg)
- DDX_Text(pDX, IDC_PERCENTAGE, m_strPercentage);
- DDX_Text(pDX, IDC_NAME, m_strName);
- DDX_Text(pDX, IDC_BOMB, m_nBomb);
- DDV_MinMaxInt(pDX, m_nBomb, 0, 100);
- //}}AFX_DATA_MAP
- }
- BEGIN_MESSAGE_MAP(CCongraduationDlg, CDialog)
- //{{AFX_MSG_MAP(CCongraduationDlg)
- //}}AFX_MSG_MAP
- END_MESSAGE_MAP()
- /////////////////////////////////////////////////////////////////////////////
- // CCongraduationDlg message handlers
- BOOL CCongraduationDlg::OnInitDialog()
- {
- CDialog::OnInitDialog();
- // TODO: Add extra initialization here
- if(m_bSound)PlaySound("win.wav", NULL, SND_FILENAME|SND_ASYNC|SND_NODEFAULT);
- GetDlgItem(IDC_NAME)->SetFocus();
- return FALSE; // return TRUE unless you set the focus to a control
- // EXCEPTION: OCX Property Pages should return FALSE
- }