foldernamedialog.cpp
来自「功能: 在目录树中增加一个文件夹。 首先获得鼠标点击处结点的信息」· C++ 代码 · 共 45 行
CPP
45 行
// FolderNameDialog.cpp : implementation file
//
#include "stdafx.h"
#include "MyFolder.h"
#include "FolderNameDialog.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CFolderNameDialog dialog
CFolderNameDialog::CFolderNameDialog(CWnd* pParent /*=NULL*/)
: CDialog(CFolderNameDialog::IDD, pParent)
{
//{{AFX_DATA_INIT(CFolderNameDialog)
m_strFolderName = _T(""); // NOTE: the ClassWizard will add member initialization here
//}}AFX_DATA_INIT
}
void CFolderNameDialog::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CFolderNameDialog)
DDX_Text(pDX, IDC_FOLDER_NAME, m_strFolderName);
DDV_MaxChars(pDX, m_strFolderName, 50); // NOTE: the ClassWizard will add DDX and DDV calls here
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(CFolderNameDialog, CDialog)
//{{AFX_MSG_MAP(CFolderNameDialog)
// NOTE: the ClassWizard will add message map macros here
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CFolderNameDialog message handlers
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?