// stdafx.cpp : source file that includes just the standard includes
//	NetSdkDemo.pch will be the pre-compiled header
//	stdafx.obj will contain the pre-compiled type information

#include "stdafx.h"
ENV_DEV_T g_envDev;

void ComboxSetDataInx(CComboBox *pBox, int nValue)
{
	int i;
	for(i=0; i<pBox->GetCount(); i++)
	{
		if(pBox->GetItemData(i) == nValue)
		{
			pBox->SetCurSel(i);
			return;
		}
	}
	pBox->SetCurSel(0);
}

int ComboxGetDataInx(CComboBox *pBox)
{
	return pBox->GetItemData(pBox->GetCurSel());
}
