Files
envi-code/SourceCode/Code2026/tg_shs/shs_blklib/ContainInsertDlg.cpp
T
gjm 164968b62e chore
把非utf8-bom编码的cpp/h文件改为 utf8 bom 编码, msvc识别utf8编码时,如果不是bom格式的,会使用当前cp_oem来解码.
2026-10-04 00:04:20 +08:00

107 lines
2.4 KiB
C++

// ContainInsertDlg.cpp : implementation file
//
#include "stdafx.h"
#include "resource.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CContainInsertDlg dialog
class CContainInsertDlg : public CModelessDialog
{
// Construction
public:
CString m_csPrompt;
CContainInsertDlg(CWnd* pParent = NULL); // standard constructor
// Dialog Data
//{{AFX_DATA(CContainInsertDlg)
enum { IDD = IDD_DLG_SSINSERT };
// NOTE: the ClassWizard will add data members here
//}}AFX_DATA
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CContainInsertDlg)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
// Generated message map functions
//{{AFX_MSG(CContainInsertDlg)
afx_msg void OnExplode();
virtual BOOL OnInitDialog();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
CContainInsertDlg::CContainInsertDlg(CWnd* pParent /*=NULL*/)
: CModelessDialog(CContainInsertDlg::IDD, pParent)
{
//{{AFX_DATA_INIT(CContainInsertDlg)
// NOTE: the ClassWizard will add member initialization here
//}}AFX_DATA_INIT
}
void CContainInsertDlg::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CContainInsertDlg)
// NOTE: the ClassWizard will add DDX and DDV calls here
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(CContainInsertDlg, CModelessDialog)
//{{AFX_MSG_MAP(CContainInsertDlg)
ON_BN_CLICKED(IDC_BTN_EXPLODE, OnExplode)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CContainInsertDlg message handlers
void CContainInsertDlg::OnExplode()
{
// TODO: Add your control notification handler code here
EndDialog(IDC_BTN_EXPLODE);
}
BOOL CContainInsertDlg::OnInitDialog()
{
CDialog::OnInitDialog();
if(!m_csPrompt.IsEmpty()) {
CWnd *pWnd=GetDlgItem(IDC_PROMPT);
ASSERT(pWnd);
pWnd->SetWindowText(m_csPrompt);
}
return TRUE; // return TRUE unless you set the focus to a control
// EXCEPTION: OCX Property Pages should return FALSE
}
int DlgContainInsert()
{
INT_PTR nRetCode;
CContainInsertDlg dlg(acedGetAcadFrame());
{
CTemporaryResourceOverride vTemp;
nRetCode=dlg.DoModal();
}
if(nRetCode==IDCANCEL)
return 0;
else if(nRetCode==IDOK)
return 1;
return 2;
}