void
ArxDbgUiTdcWblockClone::displayDbLists() 
{
    m_dbPtrs.setLogicalLength(0);
    m_lbSourceDb.ResetContent();
    m_lbDestDb.ResetContent();

    m_cloneSet.getAllDatabases(m_dbPtrs);

    CString str;
    AcDbDatabase* tmpDb;

    int len = m_dbPtrs.length();
    for (int i=0; i<len; i++) {
        tmpDb = static_cast<AcDbDatabase*>(m_dbPtrs[i]);

        ArxDbgUtils::dbToStr(tmpDb, str);
        m_lbSourceDb.AddString(str);
        m_lbDestDb.AddString(str);
    }

        // Add a "temp" database to the destination side
    m_dbPtrs.append(NULL);
    m_lbDestDb.AddString(_T("** TEMP DATABASE **"));

    m_lbSourceDb.SetCurSel(0);
    m_lbDestDb.SetCurSel(0);

    fillBlockList();
    setButtonModes();
}
void
ArxDbgUiTdcInsert::displayDbLists() 
{
	m_dbPtrs.setLogicalLength(0);
	m_lbSourceDb.ResetContent();
	m_lbDestDb.ResetContent();

	ArxDbgUtils::getAllDatabases(m_dbPtrs);

	CString str;
	AcDbDatabase* tmpDb;

    int len = m_dbPtrs.length();
    for (int i=0; i<len; i++) {
		tmpDb = static_cast<AcDbDatabase*>(m_dbPtrs[i]);

		ArxDbgUtils::dbToStr(tmpDb, str);
		m_lbSourceDb.AddString(str);
		m_lbDestDb.AddString(str);

		m_extDwgNames.Add(_T(""));	// add bogus dwgName to keep these in sync when we
								    // later add external drawings.
    }

	m_lbSourceDb.SetCurSel(0);
	m_lbDestDb.SetCurSel(0);

	fillBlockList();
	setButtonModes();
}
Exemple #3
0
BOOL BlockDraw_ConfigDlg::OnInitDialog()
{
    CDialog::OnInitDialog();

    fillBlockList();

    int sel = m_blockList.FindString( -1, m_blockName );
    if( sel == CB_ERR )
    {
        m_blockList.SetCurSel( sel );
    }
    else
    {
        m_blockList.SetCurSel( 0 );
    }

    return TRUE;  // return TRUE unless you set the focus to a control
    // 异常: OCX 属性页应返回 FALSE
}
void
ArxDbgUiTdcWblockClone::OnSourceDatabaseChanged() 
{
    fillBlockList();
    setButtonModes();
}
void
ArxDbgUiTdcInsert::OnSourceDatabaseChanged() 
{
	fillBlockList();
	setButtonModes();
}