UIDlg.cpp
资源名称:08.zip [点击查看]
上传用户:ynjin1970
上传日期:2014-10-13
资源大小:6438k
文件大小:1k
源码类别:
中间件编程
开发平台:
Visual C++
- // UIDlg.cpp : implementation file
- //
- #include "stdafx.h"
- #include "mythread.h"
- #include "UIDlg.h"
- #include "credits.h"
- #ifdef _DEBUG
- #define new DEBUG_NEW
- #undef THIS_FILE
- static char THIS_FILE[] = __FILE__;
- #endif
- /////////////////////////////////////////////////////////////////////////////
- // CUIDlg dialog
- CUIDlg::CUIDlg(CWnd* pParent /*=NULL*/)
- : CDialog(CUIDlg::IDD, pParent)
- {
- //{{AFX_DATA_INIT(CUIDlg)
- // NOTE: the ClassWizard will add member initialization here
- //}}AFX_DATA_INIT
- }
- void CUIDlg::DoDataExchange(CDataExchange* pDX)
- {
- CDialog::DoDataExchange(pDX);
- //{{AFX_DATA_MAP(CUIDlg)
- // NOTE: the ClassWizard will add DDX and DDV calls here
- //}}AFX_DATA_MAP
- }
- BEGIN_MESSAGE_MAP(CUIDlg, CDialog)
- //{{AFX_MSG_MAP(CUIDlg)
- ON_BN_CLICKED(IDC_BUTTON1, OnButton1)
- ON_BN_CLICKED(IDC_BUTTON2, OnButton2)
- //}}AFX_MSG_MAP
- END_MESSAGE_MAP()
- /////////////////////////////////////////////////////////////////////////////
- // CUIDlg message handlers
- void CUIDlg::OnButton1()
- {
- // TODO: Add your control notification handler code here
- CCredits dlg;
- dlg.DoModal();
- }
- void CUIDlg::OnButton2()
- {
- PostQuitMessage(WM_QUIT);//正常退出线程
- }