資源簡介
對話框中實現(xiàn)浮動工具欄
代碼片段和文件信息
//?DialogCuTBar.cpp?:?Defines?the?class?behaviors?for?the?application.
//
#include?“stdafx.h“
#include?“DialogCuTBar.h“
#include?“DialogCuTBarDlg.h“
#ifdef?_DEBUG
#define?new?DEBUG_NEW
#undef?THIS_FILE
static?char?THIS_FILE[]?=?__FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
//?CDialogCuTBarApp
BEGIN_MESSAGE_MAP(CDialogCuTBarApp?CWinApp)
//{{AFX_MSG_MAP(CDialogCuTBarApp)
//?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()
/////////////////////////////////////////////////////////////////////////////
//?CDialogCuTBarApp?construction
CDialogCuTBarApp::CDialogCuTBarApp()
{
//?TODO:?add?construction?code?here
//?Place?all?significant?initialization?in?InitInstance
}
/////////////////////////////////////////////////////////////////////////////
//?The?one?and?only?CDialogCuTBarApp?object
CDialogCuTBarApp?theApp;
/////////////////////////////////////////////////////////////////////////////
//?CDialogCuTBarApp?initialization
BOOL?CDialogCuTBarApp::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
CDialogCuTBarDlg?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;
}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件????????2147??1998-12-14?16:02??DialogCuTBar.cpp
?????文件???????32768??1998-12-14?19:08??DialogCuTBar.exe
?????文件????????1398??1998-12-14?16:02??DialogCuTBar.h
?????文件????????1078??1998-12-14?18:47??DialogCuTBar.ico
?????文件????????6551??1998-12-14?19:08??DialogCuTBar.rc
?????文件?????????404??1998-12-14?16:02??DialogCuTBar.rc2
?????文件????????6566??1998-12-14?19:08??DialogCuTBarDlg.cpp
?????文件????????1842??1998-12-14?18:59??DialogCuTBarDlg.h
?????文件?????????878??1998-12-14?19:00??idc_stat.bmp
?????文件????????3455??1998-12-14?16:02??ReadMe.txt
?????文件?????????969??1998-12-14?19:08??resource.h
?????文件?????????210??1998-12-14?16:02??StdAfx.cpp
?????文件?????????987??1998-12-14?16:02??StdAfx.h
?????文件????????3357??1998-12-14?18:41??StTbar.cpp
?????文件????????1973??1998-12-14?19:04??StTbar.h
?????文件?????????878??1998-12-14?16:05??toolbar1.bmp
評論
共有 條評論