返回输入函数的输入值
ARXDLL int mcedGetInput(TCHAR * str);
Mcedads.h
参数 |
说明 |
TCHAR * str |
返回值,str 指向一个缓存大小为512的字符串数组,方便返回,不能为空。 |
成功返回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, keyWords()); 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;