• 大小: 90.63MB
    文件类型: .zip
    金币: 2
    下载: 1 次
    发布日期: 2022-09-22
  • 语言: C/C++
  • 标签: MFC  抽奖程序  

资源简介

MFC实现的抽奖程序(含代码) 用来完成日常中抽签决定的事物,短小精悍

资源截图

代码片段和文件信息

// LuckyDraw.cpp : Defines the class behaviors for the application.
//

#include “stdafx.h“
#include “LuckyDraw.h“
#include “LuckyDrawDlg.h“

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// CLuckyDrawApp

BEGIN_MESSAGE_MAP(CLuckyDrawApp CWinApp)
//{{AFX_MSG_MAP(CLuckyDrawApp)
// NOTE - the ClassWizard will add and remove mapping macros here.
//    DO NOT EDIT what you see in these blocks of generated code!
//}}AFX_MSG
ON_COMMAND(ID_HELP CWinApp::onhelp)
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CLuckyDrawApp construction

CLuckyDrawApp::CLuckyDrawApp()
{
// TODO: add construction code here
// Place all significant initialization in InitInstance
}

/////////////////////////////////////////////////////////////////////////////
// The one and only CLuckyDrawApp object

CLuckyDrawApp theApp;

/////////////////////////////////////////////////////////////////////////////
// CLuckyDrawApp initialization

BOOL CLuckyDrawApp::InitInstance()
{
AfxEnableControlContainer();

// Standard initialization
// If you are not using these features and wish to reduce the size
//  of your final executable you should remove from the following
//  the specific initialization routines you do not need.

#ifdef _AFXDLL
Enable3dControls(); // Call this when using MFC in a shared DLL
#else
Enable3dControlsStatic(); // Call this when linking to MFC statically
#endif

CLuckyDrawDlg dlg;
m_pMainWnd = &dlg;
int nResponse = dlg.DoModal();
if (nResponse == IDOK)
{
// TODO: Place code here to handle when the dialog is
//  dismissed with OK
}
else if (nResponse == IDCANCEL)
{
// TODO: Place code here to handle when the dialog is
//  dismissed with Cancel
}

// Since the dialog has been closed return FALSE so that we exit the
//  application rather than start the application‘s message pump.
return FALSE;
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2018-01-26 19:21  LuckyDraw\
     目录           0  2016-07-29 15:50  LuckyDraw\.vs\
     目录           0  2016-07-29 15:50  LuckyDraw\.vs\LuckyDraw\
     目录           0  2016-07-29 16:19  LuckyDraw\.vs\LuckyDraw\v14\
     文件       49152  2018-01-26 19:21  LuckyDraw\.vs\LuckyDraw\v14\.suo
     目录           0  2016-07-29 15:50  LuckyDraw\Backup\
     目录           0  2018-01-26 19:19  LuckyDraw\Debug\
     文件         954  2018-01-05 15:47  LuckyDraw\Debug\LuckyDraw.Build.CppClean.log
     文件     8670720  2018-01-26 19:19  LuckyDraw\Debug\LuckyDraw.exe
     文件    20808760  2018-01-26 19:19  LuckyDraw\Debug\LuckyDraw.ilk
     文件         122  2018-01-26 19:19  LuckyDraw\Debug\LuckyDraw.log
     文件      350846  2018-01-26 19:11  LuckyDraw\Debug\LuckyDraw.obj
     文件    50331648  2018-01-26 18:26  LuckyDraw\Debug\LuckyDraw.pch
     文件    37556224  2018-01-26 19:19  LuckyDraw\Debug\LuckyDraw.pdb
     文件       17124  2018-01-26 19:19  LuckyDraw\Debug\LuckyDraw.res
     目录           0  2018-01-26 19:19  LuckyDraw\Debug\LuckyDraw.tlog\
     文件        3348  2018-01-26 19:18  LuckyDraw\Debug\LuckyDraw.tlog\CL.command.1.tlog
     文件       53168  2018-01-26 19:18  LuckyDraw\Debug\LuckyDraw.tlog\CL.read.1.tlog
     文件        2100  2018-01-26 19:18  LuckyDraw\Debug\LuckyDraw.tlog\CL.write.1.tlog
     文件        1438  2018-01-26 19:19  LuckyDraw\Debug\LuckyDraw.tlog\link.command.1.tlog
     文件        6450  2018-01-26 19:19  LuckyDraw\Debug\LuckyDraw.tlog\link.read.1.tlog
     文件         658  2018-01-26 19:19  LuckyDraw\Debug\LuckyDraw.tlog\link.write.1.tlog
     文件         182  2018-01-26 19:19  LuckyDraw\Debug\LuckyDraw.tlog\LuckyDraw.lastbuildstate
     文件         288  2018-01-26 19:19  LuckyDraw\Debug\LuckyDraw.tlog\rc.command.1.tlog
     文件        5526  2018-01-26 19:19  LuckyDraw\Debug\LuckyDraw.tlog\rc.read.1.tlog
     文件         138  2018-01-26 19:19  LuckyDraw\Debug\LuckyDraw.tlog\rc.write.1.tlog
     文件     2828250  2016-07-29 16:31  LuckyDraw\Debug\LuckyDraw.zip
     文件     1275529  2018-01-26 19:18  LuckyDraw\Debug\LuckyDrawDlg.obj
     文件         595  2018-01-26 19:22  LuckyDraw\Debug\member.dat
     文件       18412  2018-01-26 18:27  LuckyDraw\Debug\MyButton.obj
     文件       92654  2018-01-26 18:27  LuckyDraw\Debug\MyEditBox.obj
............此处省略37个文件信息

评论

共有 条评论