www.gusucode.com > 基于VC编程界面编程高级应用技术源码程序 > VC界面编程高级应用技术/code/3/DialogBar/DialogForToolBar.cpp
// DialogForToolBar.cpp : implementation file // #include "stdafx.h" #include "DialogBar.h" #include "DialogForToolBar.h" #ifdef _DEBUG #define new DEBUG_NEW #undef THIS_FILE static char THIS_FILE[] = __FILE__; #endif ///////////////////////////////////////////////////////////////////////////// // CDialogForToolBar dialog CDialogForToolBar::CDialogForToolBar(CWnd* pParent /*=NULL*/) : CDialog(CDialogForToolBar::IDD, pParent) { //{{AFX_DATA_INIT(CDialogForToolBar) // NOTE: the ClassWizard will add member initialization here //}}AFX_DATA_INIT } void CDialogForToolBar::DoDataExchange(CDataExchange* pDX) { CDialog::DoDataExchange(pDX); //{{AFX_DATA_MAP(CDialogForToolBar) // NOTE: the ClassWizard will add DDX and DDV calls here //}}AFX_DATA_MAP } BEGIN_MESSAGE_MAP(CDialogForToolBar, CDialog) //{{AFX_MSG_MAP(CDialogForToolBar) // ON_BN_CLICKED(IDC_BUTTON2, OnButton2) //ON_BN_CLICKED( // ON_COMMAND(IDC_BUTTON3, OnButton3) //}}AFX_MSG_MAP END_MESSAGE_MAP() ///////////////////////////////////////////////////////////////////////////// // CDialogForToolBar message handlers //DEL void CDialogForToolBar::OnButton1() //DEL { //DEL AfxMessageBox("你好"); //DEL } //DEL void CDialogForToolBar::OnButton2() //DEL { //DEL // TODO: Add your control notification handler code here //DEL //DEL } //DEL void CDialogForToolBar::OnButton3() //DEL { //DEL // TODO: Add your control notification handler code here //DEL //DEL }