1 Star 0 Fork 0

李纪潜/OS-virtual_disk

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
dlg_create_folder.cpp 2.20 KB
一键复制 编辑 原始数据 按行查看 历史
sunshinenum 提交于 2014-10-25 15:33 . code add
// dlg_create_folder.cpp : implementation file
//
#include "stdafx.h"
#include "virtual_disk.h"
#include "dlg_create_folder.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// dlg_create_folder dialog
dlg_create_folder::dlg_create_folder(CWnd* pParent /*=NULL*/)
: CDialog(dlg_create_folder::IDD, pParent)
{
EnableAutomation();
//{{AFX_DATA_INIT(dlg_create_folder)
m_folder_name = _T("");
//}}AFX_DATA_INIT
}
void dlg_create_folder::OnFinalRelease()
{
// When the last reference for an automation object is released
// OnFinalRelease is called. The base class will automatically
// deletes the object. Add additional cleanup required for your
// object before calling the base class.
CDialog::OnFinalRelease();
}
void dlg_create_folder::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(dlg_create_folder)
DDX_Text(pDX, IDC_EDIT_FOLDER_NAME, m_folder_name);
DDV_MaxChars(pDX, m_folder_name, 32);
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(dlg_create_folder, CDialog)
//{{AFX_MSG_MAP(dlg_create_folder)
ON_BN_CLICKED(IDC_BUTTON_CREATE, OnButtonCreate)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
BEGIN_DISPATCH_MAP(dlg_create_folder, CDialog)
//{{AFX_DISPATCH_MAP(dlg_create_folder)
// NOTE - the ClassWizard will add and remove mapping macros here.
//}}AFX_DISPATCH_MAP
END_DISPATCH_MAP()
// Note: we add support for IID_Idlg_create_folder to support typesafe binding
// from VBA. This IID must match the GUID that is attached to the
// dispinterface in the .ODL file.
// {E7F6A2E2-9BB7-412B-B28B-24CAF29DDDE6}
static const IID IID_Idlg_create_folder =
{ 0xe7f6a2e2, 0x9bb7, 0x412b, { 0xb2, 0x8b, 0x24, 0xca, 0xf2, 0x9d, 0xdd, 0xe6 } };
BEGIN_INTERFACE_MAP(dlg_create_folder, CDialog)
INTERFACE_PART(dlg_create_folder, IID_Idlg_create_folder, Dispatch)
END_INTERFACE_MAP()
/////////////////////////////////////////////////////////////////////////////
// dlg_create_folder message handlers
void dlg_create_folder::OnButtonCreate()
{
// TODO: Add your control notification handler code here
UpdateData(TRUE);
g_folder_name=m_folder_name;
EndDialog(0);
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/Nick-LLL/OS-virtual_disk.git
git@gitee.com:Nick-LLL/OS-virtual_disk.git
Nick-LLL
OS-virtual_disk
OS-virtual_disk
master

搜索帮助

23e8dbc6 1850385 7e0993f3 1850385