初始化输入函数的状态,和关键字列表,该函数只会影响后面紧接调用的输入函数。
ARXDLL int mcedInitGet(int val, const TCHAR * kwl);
Mcedads.h
参数 |
说明 |
int val |
输入函数的状态 |
const TCHAR * kwl |
关键字列表 |
成功返回RTNORM
例如:
if (m_allowNone == Adesk::kFalse) initFlag += RSG_NONULL; if (m_noLimCheck == Adesk::kTrue) initFlag += RSG_NOLIM; if (m_useDashedLine == Adesk::kTrue) initFlag += RSG_DASH; prompt.Format(_T("n%s: "), message()); mcedInitGet(initFlag, _T("L X")); if (m_useBasePt) result = mcedGetPoint(asDblArray(m_basePt), prompt, adsPt); else result = mcedGetPoint(NULL, prompt, adsPt); if (result == RTNORM){ m_value = asPnt3d(adsPt); setSysVar(_T("LASTPOINT"), m_value); return ArxDbgUiPrBase::kOk; } else if (result == RTNONE){ ASSERT(m_allowNone == Adesk::kTrue); return ArxDbgUiPrBase::kNone; } else if (result == RTKWORD){ mcedGetInput(m_keyWordPicked.GetBuffer(512)); m_keyWordPicked.ReleaseBuffer(); return ArxDbgUiPrBase::kKeyWord; } else return ArxDbgUiPrBase::kCancel;