文件名称:ClickDialog
- 所属分类:
- 对话框与窗口
- 资源属性:
- [Windows] [Visual C] [源码]
- 上传时间:
- 2012-11-26
- 文件大小:
- 24kb
- 下载次数:
- 0次
- 提 供 者:
- SeVe*****
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
点击按钮,弹出另一个对话框的Demo
第一步:添加(Insert Dialog)要弹出的Dialog,根据自己需要可以设计界面,因为我是一个简单Demo,所以很简单!
第二步:为添加的Dialog添加建立成一个继承DLG的类,class CDialog1 : public CDialog
第三步:在主对话框中为按钮添加函数。如下:
void CClickDialogDlg::OnButton1()
{
// TODO: Add your control notification handler code here
CDialog1 dlg
dlg.DoModal()
}
不要忘记#include "Dialog1.h"-Click of a button, another dialog box pop Demo of the first step: add (Insert Dialog) to the pop-up Dialog, according to their own needs can be designed interface, because I am a simple Demo, so very simple! Step two: add Dialog to add the establishment of a succession of DLG class, class CDialog1: public CDialog third step: in the main dialog box for the button to add the function. As follows: void CClickDialogDlg:: OnButton1 () (//TODO: Add your control notification handler code here CDialog1 dlg dlg.DoModal ()) do not forget# Include
第一步:添加(Insert Dialog)要弹出的Dialog,根据自己需要可以设计界面,因为我是一个简单Demo,所以很简单!
第二步:为添加的Dialog添加建立成一个继承DLG的类,class CDialog1 : public CDialog
第三步:在主对话框中为按钮添加函数。如下:
void CClickDialogDlg::OnButton1()
{
// TODO: Add your control notification handler code here
CDialog1 dlg
dlg.DoModal()
}
不要忘记#include "Dialog1.h"-Click of a button, another dialog box pop Demo of the first step: add (Insert Dialog) to the pop-up Dialog, according to their own needs can be designed interface, because I am a simple Demo, so very simple! Step two: add Dialog to add the establishment of a succession of DLG class, class CDialog1: public CDialog third step: in the main dialog box for the button to add the function. As follows: void CClickDialogDlg:: OnButton1 () (//TODO: Add your control notification handler code here CDialog1 dlg dlg.DoModal ()) do not forget# Include
(系统自动生成,下载前可以参看下载内容)
下载文件列表
ClickDialog.aps
ClickDialog.clw
ClickDialog.cpp
ClickDialog.dsp
ClickDialog.dsw
ClickDialog.h
ClickDialog.ncb
ClickDialog.plg
ClickDialog.rc
ClickDialogDlg.cpp
ClickDialogDlg.h
Dialog1.cpp
Dialog1.h
ReadMe.txt
res
...\ClickDialog.rc2
Resource.h
StdAfx.cpp
StdAfx.h
ClickDialog.clw
ClickDialog.cpp
ClickDialog.dsp
ClickDialog.dsw
ClickDialog.h
ClickDialog.ncb
ClickDialog.plg
ClickDialog.rc
ClickDialogDlg.cpp
ClickDialogDlg.h
Dialog1.cpp
Dialog1.h
ReadMe.txt
res
...\ClickDialog.rc2
Resource.h
StdAfx.cpp
StdAfx.h