예제 #1
0
파일: dtSelect.cpp 프로젝트: auranet/csmap
///////////////////////////////////////////////////////////////////////////////
// Basic 'C' callable function interface
int EXP_LVL1 CS_dtSelector (char *dtKeyName)
{
	CdtSelect dtSelect;

	dtSelect.SetInitialDatum (dtKeyName);
	INT_PTR st = dtSelect.DoModal ();
	if (st == IDOK)
	{
		CS_stncp (dtKeyName,dtSelect.GetSelectedDatum (),cs_KEYNM_DEF);
	}
	return (int)st;
}
예제 #2
0
파일: dtSelect.cpp 프로젝트: kanbang/Colt
///////////////////////////////////////////////////////////////////////////////
// Basic 'C' callable function interface
int EXP_LVL1 CS_dtSelector (char *dtKeyName)
{
    TCHAR tcKeyName [cs_KEYNM_DEF];
    CdtSelect dtSelect;

    CSt_strNCpy (tcKeyName,dtKeyName,cs_KEYNM_DEF);
    dtSelect.SetInitialDatum (tcKeyName);
    INT_PTR st = dtSelect.DoModal ();
    if (st == IDOK)
    {
        CSt_strNCpy (dtKeyName,dtSelect.GetSelectedDatum (),cs_KEYNM_DEF);
    }
    return static_cast<int>(st);
}
예제 #3
0
파일: dtSelect.cpp 프로젝트: auranet/csmap
int EXP_LVL1 CS_dtSelectorA (char *dtKeyName,char *description,char *source,char *ellipsoid,char *technique)
{
	CdtSelect dtSelect;

	dtSelect.SetInitialDatum (dtKeyName);
	INT_PTR st = dtSelect.DoModal ();
	if (st == IDOK)
	{
		CS_stncp (dtKeyName,dtSelect.GetSelectedDatum (),cs_KEYNM_DEF);
		CS_stncp (description,dtSelect.GetSelectedDescription (),64);
		CS_stncp (source,dtSelect.GetSelectedSource (),64);
		CS_stncp (ellipsoid,dtSelect.GetSelectedEllipsoid (),cs_KEYNM_DEF);
		CS_stncp (technique,dtSelect.GetSelectedTechnique (),32);
	}
	return (int)st;
}