23 lines
416 B
C++
23 lines
416 B
C++
#include "stdafx.h"
|
|
#include "DimDocReactor.h"
|
|
#include "globalFunc.h"
|
|
|
|
CDimDocReactor::CDimDocReactor()
|
|
{
|
|
if (acDocManager)
|
|
acDocManager->addReactor(this);
|
|
}
|
|
CDimDocReactor::~CDimDocReactor()
|
|
{
|
|
if (acDocManager)
|
|
acDocManager->removeReactor(this);
|
|
}
|
|
|
|
void CDimDocReactor::documentActivated(AcApDocument *pActivatedDoc)
|
|
{
|
|
if (pActivatedDoc)
|
|
GlobalFunc::LoadConfig();
|
|
}
|
|
|
|
//安装
|
|
CDimDocReactor docReactor; |