Beispiel #1
0
void RAFDiary::Refresh()
{
	
	CRCombo* combo;

	combo=GETDLGITEM(IDC_RCOMBOGROUP);
	combo->Clear()->RESCOMBO(10,6)->
					SetIndex(group);

	combo=GETDLGITEM(IDC_RCOMBOSQUAD);
	combo->Clear();
	
	int index = 0;
	for (int i = 0; i < maxsquads; i++)
	{
		combo->AddString(Node_Data.squadron[Squadron[i]].SubName());
		if(sqnum == Node_Data.squadron[Squadron[i]].squadron)
			index = i;

	}

	combo->SetIndex(index);



}
Beispiel #2
0
void	QuickParameters::TargNameCombo()
{
	CRCombo* combo;

	combo=GETDLGITEM(IDC_TARGNAME);
	combo->Clear();
	combo->AddString(GetTargName(CSQuick1::quickdef.targets[targtype][0]));
	if (CSQuick1::quickdef.targets[targtype][1])
	combo->AddString(GetTargName(CSQuick1::quickdef.targets[targtype][1]));
	if (CSQuick1::quickdef.targets[targtype][2])
		combo->AddString(GetTargName(CSQuick1::quickdef.targets[targtype][2]));
	if (CSQuick1::quickdef.targets[targtype][3])
		combo->AddString(GetTargName(CSQuick1::quickdef.targets[targtype][3]));
	combo->SetIndex(targentry);
}
Beispiel #3
0
void	QuickParameters::ReinitCombo()
{
	CRCombo* combo;
	targtype=0,targentry=0;
	for (int t=0;t<4;t++)
		for (int e=0;e<4;e++)
			if(CSQuick1::quickdef.targets[t][e]==CSQuick1::quickdef.target)
				targtype=t,targentry=e;

	combo=GETDLGITEM(IDC_TARGTYPE);
	combo->Clear();
	combo->AddString(LoadResString(CSQuick1::quickdef.targtypeIDs[0]));
	if (CSQuick1::quickdef.targtypeIDs[1])
		combo->AddString(LoadResString(CSQuick1::quickdef.targtypeIDs[1]));
	if (CSQuick1::quickdef.targtypeIDs[2])
		combo->AddString(LoadResString(CSQuick1::quickdef.targtypeIDs[2]));
	if (CSQuick1::quickdef.targtypeIDs[3])
		combo->AddString(LoadResString(CSQuick1::quickdef.targtypeIDs[3]));
	if (CSQuick1::quickdef.targtypeIDs[0])
		combo->SetIndex(targtype);

	TargNameCombo();


	SWord Latitude = 51;												//RDH 25/02/00
	MMC.Sky.SetMissionDawnDusk(Latitude, MMC.currdate, MMC.dawntime, MMC.dusktime);

	int timeindex = CSQuick1::quickdef.time;
	SetTime(timeindex);
	

	combo=GETDLGITEM(IDC_TIME);
	combo->Clear();
	combo->RESCOMBO(DAWN,4)->SetIndex(timeindex);

	int weatherindex = CSQuick1::quickdef.weather;
	SetWeather(weatherindex);


	combo=GETDLGITEM(IDC_CLOUD);
	combo->Clear();
	combo->RESCOMBO(CLEARSKY,4)->SetIndex(weatherindex);

}
Beispiel #4
0
BOOL SelectTarget::OnInitDialog() 
{
	CDialog::OnInitDialog();
	
	CRCombo* combo;
	CRButton*	but = GETDLGITEM(IDC_RBUTTONRESET);


	combo=GETDLGITEM(IDC_RCOMBOTARGET);
	if  (	(currtab == -1)
		||	(RFullPanelDial::gameside != RFullPanelDial::SIDE_LW)
		)

	{
		but->ShowWindow(false);
		combo->ShowWindow(false);
		currindex = 0;
	}else
	{

		but->ShowWindow(true);
		combo->ShowWindow(true);
		combo->Clear();
		Profile& pk = Todays_Packages.pack[Todays_Packages.hipack];
		int ti= pk[currsquad].targetindex;
		if (ti<0) ti=0;
		TargetGroup* trg;
		trg = Node_Data[pk.packagetarget[ti].currentid];
 		combo->AddString(GetTargName(trg->uid));

		for (int i=0; i < TargetGroup::MAXSECONDARIES;i++)
		{
			if	(	(trg)	&&	(trg->secondaries[i]))
				combo->AddString(GetTargName(trg->secondaries[i]));
		}
		combo->SetIndex(0);
		currindex = 0;
	}
	return TRUE;  // return TRUE unless you set the focus to a control
	              // EXCEPTION: OCX Property Pages should return FALSE
}
Beispiel #5
0
void	CSQuick1::RefreshMissionCombo()
{
	CRCombo* combo;
	combo=GETDLGITEM(IDC_MISSLISTS);
	combo->Clear();

//	combo->RESCOMBO(QUICK_1,20)->SetIndex(currquickmiss);
//DeadCode AMM 12May99 	char i = 0;
//DeadCode AMM 12May99 	while (quickmissions[i].missionname !=NULL)
//DeadCode AMM 12May99 	{
//DeadCode AMM 12May99 		combo->AddString(LoadResString(quickmissions[i].missionname));
//DeadCode AMM 12May99 		i++;
//DeadCode AMM 12May99 	}
//DeadCode AMM 12May99 	combo->SetIndex(currquickmiss);

	int i,j=0;
	i = missionfamily[currquickfamily];
	bool		currmissionfound = false;

	while (		(quickmissions[i].missionname !=NULL)
		&&	(i < missionfamily[currquickfamily+1])
	   )
	{
		if 	(currquickmiss == i)
			currmissionfound = true;
		i++;

	}
	if (!currmissionfound)
	 	currquickmiss = missionfamily[currquickfamily];


	i = missionfamily[currquickfamily];
	j=0;
	while (		(quickmissions[i].missionname !=NULL)
			&&	(i < missionfamily[currquickfamily+1])
		   )
	{
		if (MissionAllowed(i))
		{
			misslistbackindex[i]=j;
			misslistindex[j]=i;
			j++;
			combo->AddString(LoadResString(quickmissions[i].missionname));
		}
		else
			misslistbackindex[i]=255;
		i++;
	}
	if (misslistbackindex[currquickmiss]!=255)
	{
//DeadCode JIM 20Oct00  		for (int t=0; t<20;t++)
//DeadCode JIM 20Oct00 		{
//DeadCode JIM 20Oct00 			int r = misslistbackindex[t];
//DeadCode JIM 20Oct00 		}
		combo->SetIndex(misslistbackindex[currquickmiss]);
	}
	else
	{
		currquickmiss=misslistindex[0];
		quickdef=quickmissions[currquickmiss];
		combo->SetIndex(0);
	}
}
Beispiel #6
0
BOOL CSQuick1::OnInitDialog() 
{
	CDialog::OnInitDialog();
	// TODO: Add extra initialization here

	QuickParameters::SetWeather(CSQuick1::quickdef.weather);								//RDH 9Sep00
	QuickParameters::SetTime(CSQuick1::quickdef.time);					//RDH 30Sep00

	CRRadio* pradio;
	CString string;

//	m_IDC_MISSLISTS.SetCircularStyle(TRUE);
//	m_IDC_FLIGHTNUM.SetCircularStyle(TRUE);
//	m_IDC_ELTNUM.SetCircularStyle(TRUE);
//	m_IDC_TARGTYPE.SetCircularStyle(TRUE);
//	m_IDC_TARGNAME.SetCircularStyle(TRUE);

	if (_DPlay.PlayerCreated)
	{
		FullPanel()->ResetQuitOption();
	}

	pradio=GETDLGITEM(IDC_RRADIO);
	string.LoadString(IDS_SCENARIO);
	pradio->AddButton(string);

	string.LoadString(IDS_PARAMETERS);
	pradio->AddButton(string);

	string.LoadString(IDS_UN);
	pradio->AddButton(string);
	string.LoadString(IDS_RED);
	pradio->AddButton(string);

	CRCombo* combo;
	combo=GETDLGITEM(IDC_FAMILYLISTS);
	char i = 0,j=0;
	int	currtitle = quickmissions[0].titlename;
	if (MissionsFound(i, currtitle))
	{
		combo->AddString(LoadResString(quickmissions[0].titlename));
 		missionfamily[j++] = 0;
	}
	while (quickmissions[i].missionname !=NULL)
	{
		if (quickmissions[i].titlename != currtitle)
		{
			currtitle = quickmissions[i].titlename;
 			if (MissionsFound(i, currtitle))
			{
				combo->AddString(LoadResString(quickmissions[i].titlename));
				missionfamily[j++] = i;
			}

		}
		i++;
	}
	missionfamily[j] = 255;
	combo->SetIndex(currquickfamily);


	RefreshMissionCombo();

//DEADCODE RDH 18/01/00 	combo=GETDLGITEM(IDC_ELTNUM);
//DEADCODE RDH 18/01/00 	combo->RESCOMBO(ELTPOS_0,4);
	wassingle=false;
	ReinitCombo();

//	if (RFullPanelDial::incomms)
	if (_DPlay.PlayerCreated)
	{
//DeadCode AMM 16Nov99 		_DPlay.SendInMissionBriefMessage();
//DeadCode AMM 16Nov99 		DPlay::H2H_Player[_DPlay.mySlot].status=CPS_MISSIONBRIEF;
		_DPlay.SendStatusChange(DPlay::CPS_MISSIONBRIEF);
	}

	 missbrief_timer=SetTimer(DPlay::TIMER_MISSIONBRIEF,0,NULL); 

	return TRUE;  // return TRUE unless you set the focus to a control
	              // EXCEPTION: OCX Property Pages should return FALSE

}
Beispiel #7
0
void LWTaskSummary::Refresh()
{
//DeadCode JIM 30Oct00 	MakeFighterSpinLists(false);
	CRSpinBut* spinbut;
//DEADCODE RDH 12/01/00 	spinbut=GETDLGITEM(IDC_RSPINBUT_TARGETS);
//DEADCODE RDH 12/01/00 	spinbut->Clear()->MakeNumList(10,1,1)->SetIndex(Todays_Packages.taskdata.targetnum-1);
//DEADCODE RDH 12/01/00  
//DEADCODE RDH 12/01/00 	spinbut=GETDLGITEM(IDC_RSPINBUT_PERCENTFIGHTERS);
//DEADCODE RDH 12/01/00 	int fighters = Todays_Packages.taskdata.acttached_no + Todays_Packages.taskdata.detached_no;
//DEADCODE RDH 12/01/00 	int percent =  fighters/(fighters+Todays_Packages.taskdata.strike_no);
//DEADCODE RDH 12/01/00 	spinbut->Clear()->MakeNumList(100,0,1)->SetIndex(percent);

	CRStatic*   s;
	s=GETDLGITEM(IDC_TARGETS);
	s->SetString(CSprintf("%i",	Todays_Packages.taskdata.targetnum));

	int fighters = Todays_Packages.taskdata.totalfighter.acnum;
	int fightersquads = Todays_Packages.taskdata.totalfighter.squadnum;
//DEADCODE RDH 24/03/00 	bool squads = false;
//DEADCODE RDH 24/03/00 		
//DEADCODE RDH 24/03/00 	if (Todays_Packages.taskdata.returned.acnum == -1)
//DEADCODE RDH 24/03/00 	{
//DEADCODE RDH 24/03/00 		fightersquads +=Todays_Packages.taskdata.returned.squadnum;
//DEADCODE RDH 24/03/00 		squads = true;
//DEADCODE RDH 24/03/00 	}else
//DEADCODE RDH 24/03/00 		fighters +=Todays_Packages.taskdata.returned.acnum;
//DEADCODE RDH 24/03/00 
//DEADCODE RDH 24/03/00 	if (Todays_Packages.taskdata.attached.acnum == -1)
//DEADCODE RDH 24/03/00 	{
//DEADCODE RDH 24/03/00 		fightersquads +=Todays_Packages.taskdata.attached.squadnum;
//DEADCODE RDH 24/03/00 		squads = true;
//DEADCODE RDH 24/03/00 	}else
//DEADCODE RDH 24/03/00 		fighters +=Todays_Packages.taskdata.attached.acnum;
//DEADCODE RDH 24/03/00 
//DEADCODE RDH 24/03/00 	if (Todays_Packages.taskdata.detached.acnum == -1)
//DEADCODE RDH 24/03/00 	{
//DEADCODE RDH 24/03/00 		fightersquads +=Todays_Packages.taskdata.detached.squadnum;
//DEADCODE RDH 24/03/00 		squads = true;
//DEADCODE RDH 24/03/00 	}else
//DEADCODE RDH 24/03/00 		fighters +=Todays_Packages.taskdata.detached.acnum;
//DEADCODE RDH 24/03/00 
//DEADCODE RDH 24/03/00 	if (squads)
//DEADCODE RDH 24/03/00 	{
//DEADCODE RDH 24/03/00 		fighters = -1;
//DEADCODE RDH 24/03/00 		if (Todays_Packages.taskdata.returned.acnum > 0)
//DEADCODE RDH 24/03/00 			fightersquads ++;
//DEADCODE RDH 24/03/00 
//DEADCODE RDH 24/03/00 		if (Todays_Packages.taskdata.attached.acnum > 0)
//DEADCODE RDH 24/03/00 			fightersquads ++;
//DEADCODE RDH 24/03/00 
//DEADCODE RDH 24/03/00 		if (Todays_Packages.taskdata.detached.acnum > 0)
//DEADCODE RDH 24/03/00 			fightersquads ++;
//DEADCODE RDH 24/03/00 	}

//DEADCODE RDH 04/04/00 	int strikeac = Todays_Packages.taskdata.strike.realacnum;
//DEADCODE RDH 04/04/00 	int fighter_pc = fighters;
//DEADCODE RDH 04/04/00 	if ((strikeac == -1) || (fighters == -1))
//DEADCODE RDH 04/04/00 	{
//DEADCODE RDH 04/04/00 		if (fightersquads <= 0)
//DEADCODE RDH 04/04/00 			fightersquads = 1;
//DEADCODE RDH 04/04/00 		if (strikesquads <= 0 )
//DEADCODE RDH 04/04/00 			strikesquads = 1;
//DEADCODE RDH 04/04/00 		strike_pc = strikesquads;
//DEADCODE RDH 04/04/00 		fighter_pc = fightersquads; 
//DEADCODE RDH 04/04/00 	}
//DEADCODE RDH 04/04/00 
		
	int percent =  100* Todays_Packages.taskdata.totalfighter.realacnum
						/(Todays_Packages.taskdata.totalfighter.realacnum+Todays_Packages.taskdata.strike.realacnum);

	s=GETDLGITEM(IDC_PC_FIGHTERS);
	s->SetString(CSprintf("%i",	percent));

//DeadCode JIM 30Oct00 	if (fighters)
//DeadCode JIM 30Oct00 	{
//DeadCode JIM 30Oct00 		s=GETDLGITEM(IDC_PC_ATTACHED);
//DeadCode JIM 30Oct00 		s->SetString(CSprintf("%i",	100 * Todays_Packages.taskdata.attached.realacnum
//DeadCode JIM 30Oct00 					/Todays_Packages.taskdata.totalfighter.realacnum ));
//DeadCode JIM 30Oct00 
//DeadCode JIM 30Oct00 		s=GETDLGITEM(IDC_PC_DETACHED);
//DeadCode JIM 30Oct00 		s->SetString(CSprintf("%i",	100 * Todays_Packages.taskdata.detached.realacnum
//DeadCode JIM 30Oct00 					/Todays_Packages.taskdata.totalfighter.realacnum ));
//DeadCode JIM 30Oct00 
//DeadCode JIM 30Oct00 		s=GETDLGITEM(IDC_PC_RETURNING);
//DeadCode JIM 30Oct00 		s->SetString(CSprintf("%i",	100 * Todays_Packages.taskdata.returned.realacnum
//DeadCode JIM 30Oct00 					/Todays_Packages.taskdata.totalfighter.realacnum ));
//DeadCode JIM 30Oct00 	}else
//DeadCode JIM 30Oct00 	{
//DeadCode JIM 30Oct00 		s=GETDLGITEM(IDC_PC_ATTACHED);
//DeadCode JIM 30Oct00 		s->SetString(RESSTRING(NA));
//DeadCode JIM 30Oct00 
//DeadCode JIM 30Oct00 		s=GETDLGITEM(IDC_PC_DETACHED);
//DeadCode JIM 30Oct00 		s->SetString(RESSTRING(NA));
//DeadCode JIM 30Oct00 
//DeadCode JIM 30Oct00 		s=GETDLGITEM(IDC_PC_RETURNING);
//DeadCode JIM 30Oct00 		s->SetString(RESSTRING(NA));
//DeadCode JIM 30Oct00 
//DeadCode JIM 30Oct00 	}

  	spinbut=GETDLGITEM(IDC_RSPINBUT_BOMBERS);
	spinbut->Clear();

	int maxac =12;
	//..strike.maxac should either be <12 or -1. -1 means that we are counting in squads
	if (Todays_Packages.taskdata.strike.maxac != -1)
		maxac = Todays_Packages.taskdata.strike.maxac;
//DeadCode JIM 16Oct00 	if (maxac>12*3*3*5)
//DeadCode JIM 16Oct00 		maxac=12*3*3*5;
	int index = 0;
	int entry = 0;
	while (AcSpin[entry] <= maxac)
	{
		spinbut->AddString(CSprintf("%i %s", AcSpin[entry], RESSTRING(AIRCRAFT)));
		if  (	(Todays_Packages.taskdata.strike.acnum != -1)
			&&	(Todays_Packages.taskdata.strike.acnum >= AcSpin[entry])
			)
			spinbut->SetIndex(index);
		index++;
		entry++;
	}

	if  (Todays_Packages.taskdata.strike.maxac == -1)
	{
		entry = 0;
		if (Todays_Packages.taskdata.strike.maxsquad>3*3*5)		//JIM 16Oct00
			Todays_Packages.taskdata.strike.maxsquad=3*3*5;
		while (squadinfo[entry].numofsquads <= Todays_Packages.taskdata.strike.maxsquad)
		{
			spinbut->AddString(CSprintf("%i %s", squadinfo[entry].number, LoadResString(squadinfo[entry].name)));
			if  (	(Todays_Packages.taskdata.strike.acnum == -1)
				&&	(Todays_Packages.taskdata.strike.squadnum >= squadinfo[entry].numofsquads)
				)
				spinbut->SetIndex(index);

			entry++;
			index++;
		}
	}
 
  	spinbut=GETDLGITEM(IDC_RSPINBUT_FIGHTERS);
	spinbut->Clear();
	

	 maxac =12;
	if (Todays_Packages.taskdata.attached.maxac != -1)
		maxac = Todays_Packages.taskdata.attached.maxac;


	index = 0;
	entry = 0;
	while (FighterSpin[entry] <= maxac)
	{
		spinbut->AddString(CSprintf("%i %s", FighterSpin[entry], RESSTRING(AIRCRAFT)));
		if  (	(fighters != -1)
			&&	(fighters >= FighterSpin[entry])
			)
		{
			spinbut->SetIndex(index);
			oldindex = index;
		}
		index++;
		entry++;
	}

	if  (Todays_Packages.taskdata.attached.maxac == -1)
	{
		entry = 0;
		while (squadinfo[entry].numofsquads <= Todays_Packages.taskdata.attached.maxsquad)
		{
			spinbut->AddString(CSprintf("%i %s", squadinfo[entry].number, LoadResString(squadinfo[entry].name)));
			if  (	(fighters == -1)
				&&	(fightersquads >= squadinfo[entry].numofsquads)
				)
			{
				spinbut->SetIndex(index);
	 			oldindex = index;
			}

			entry++;
			index++;
		}
	}




	CRCombo* combo;
	combo=GETDLGITEM(IDC_RCOMBOBOMBERTYPE);
	combo->Clear();
	int i = 0;
	while	( i < PackageList::STRIKEOPTIONS)
	{	
		if (Todays_Packages.taskdata.strikeactypes[i] != PackageList::NOTDEFINED)
		{
			if (Todays_Packages.taskdata.strikeactypes[i] == PackageList::MIXED)
				combo->AddString(RESSTRING(MIXED));
			else
				combo->AddString(RESLIST(SPIT_A, Todays_Packages.taskdata.strikeactypes[i]));
		}
		i++;
	};
	combo->SetIndex(0);

 	combo=GETDLGITEM(IDC_RCOMBOFIGHTERTYPE);
	if (fighters)
	{
		combo->Clear();
		int i = 0;
		while	(		( i < PackageList::ESCORTOPTIONS)
				&&	(Todays_Packages.taskdata.escortactypes[i] != PackageList::NOTDEFINED)
			)
		{	
			if (Todays_Packages.taskdata.escortactypes[i] == PackageList::MIXED)
				combo->AddString(RESSTRING(MIXED));
			else
				combo->AddString(RESLIST(SPIT_A, Todays_Packages.taskdata.escortactypes[i]));
			i++;
		};
		combo->SetIndex(0);

	}else
	{
		combo->Clear()->SetList(IDS_NO_AIRCRAFT,1)->
					SetIndex(0);

	}



}
Beispiel #8
0
BOOL CSSound::OnInitDialog() 
{
	CDialog::OnInitDialog();
	
	if (_DPlay.PlayerCreated)									//AMM 12Jul99
	{															//AMM 12Jul99
		_DPlay.SendStatusChange(DPlay::CPS_PREFS);
	}															//AMM 12Jul99

	OthersPref_Timer=SetTimer(DPlay::TIMER_PREFSOTHERS,0,NULL);

//DEADCODE RDH 25/11/99 	CRCombo* combo;
//DEADCODE RDH 25/11/99 	if	(		(RFullPanelDial::incomms)
//DEADCODE RDH 25/11/99 			&&	(_DPlay.UIPlayerType==PLAYER_GUEST)
//DEADCODE RDH 25/11/99 		)
//DEADCODE RDH 25/11/99 	{
//DEADCODE RDH 25/11/99 		combo=GETDLGITEM(IDC_CBO_GEFFECTS);
//DEADCODE RDH 25/11/99 		combo->SetEnabled(false);
//DEADCODE RDH 25/11/99 		combo=GETDLGITEM(IDC_CBO_INJURYEFFECTS);
//DEADCODE RDH 25/11/99 		combo->SetEnabled(false);
//DEADCODE RDH 25/11/99 		combo=GETDLGITEM(IDC_CBO_WHITEOUTS);
//DEADCODE RDH 25/11/99 		combo->SetEnabled(false);
//DEADCODE RDH 25/11/99 		combo=GETDLGITEM(IDC_CBO_AUTOVECTORING);
//DEADCODE RDH 25/11/99 		combo->SetEnabled(false);
//DEADCODE RDH 25/11/99 	}else
//DEADCODE RDH 25/11/99 	{
//DEADCODE RDH 25/11/99 		combo=GETDLGITEM(IDC_CBO_GEFFECTS);
//DEADCODE RDH 25/11/99 		combo->SetEnabled(true);
//DEADCODE RDH 25/11/99 		combo=GETDLGITEM(IDC_CBO_INJURYEFFECTS);
//DEADCODE RDH 25/11/99 		combo->SetEnabled(true);
//DEADCODE RDH 25/11/99 		combo=GETDLGITEM(IDC_CBO_WHITEOUTS);
//DEADCODE RDH 25/11/99 		combo->SetEnabled(true);
//DEADCODE RDH 25/11/99 		combo=GETDLGITEM(IDC_CBO_AUTOVECTORING);
//DEADCODE RDH 25/11/99 		combo->SetEnabled(true);
//DEADCODE RDH 25/11/99 	}
//DEADCODE RDH 25/11/99 


	CRCombo* combo;
	combo=GETDLGITEM(IDC_CBO_SOUNDDRIVER);
	combo->Clear();

	LPDSPORTINFO dstemp=NULL;
	ULong index=0;

	if (_Miles.dig && _Miles.dig->DIG_valid())
	{
		dstemp=_Miles.dig->PortInfo;
	}

	if (!dstemp)
	{
		combo->AddString(RESSTRING(NOTAVAILABLE));
	}
	else
	{
		ULong n=0;

		while (dstemp)
		{
			combo->AddString(dstemp->device);
			if (dstemp->port==Save_Data.SFXDevice)
				index=n;

			n++;
			dstemp=dstemp->next;
		}
	}

	combo->SetIndex(index);

//DEADCODE RDH 07/03/00 	combo=GETDLGITEM(IDC_CBO_MUSICDRIVER);
//DEADCODE RDH 07/03/00 	combo->Clear();
//DEADCODE RDH 07/03/00 
//DEADCODE RDH 07/03/00 	LPDMPORTINFO temp=NULL;
//DEADCODE RDH 07/03/00 
//DEADCODE RDH 07/03/00 	index=0;
//DEADCODE RDH 07/03/00 	
//DEADCODE RDH 07/03/00 	if (_Miles.mdi && _Miles.mdi->MDI_valid())
//DEADCODE RDH 07/03/00 	{
//DEADCODE RDH 07/03/00 		temp=_Miles.mdi->PortInfo;
//DEADCODE RDH 07/03/00 	}
//DEADCODE RDH 07/03/00 
//DEADCODE RDH 07/03/00 	if (!temp)
//DEADCODE RDH 07/03/00 	{
//DEADCODE RDH 07/03/00 		combo->AddString(RESSTRING(NOTAVAILABLE));
//DEADCODE RDH 07/03/00 	}
//DEADCODE RDH 07/03/00 	else
//DEADCODE RDH 07/03/00 	{
//DEADCODE RDH 07/03/00 		ULong n=0;
//DEADCODE RDH 07/03/00 
//DEADCODE RDH 07/03/00 		while (temp)
//DEADCODE RDH 07/03/00 		{
//DEADCODE RDH 07/03/00 			combo->AddString(temp->device);
//DEADCODE RDH 07/03/00 			if (temp->port==Save_Data.MusicDevice)
//DEADCODE RDH 07/03/00 				index=n;
//DEADCODE RDH 07/03/00 
//DEADCODE RDH 07/03/00 			n++;
//DEADCODE RDH 07/03/00 			temp=temp->next;
//DEADCODE RDH 07/03/00 		}
//DEADCODE RDH 07/03/00 	}
//DEADCODE RDH 07/03/00 
//DEADCODE RDH 07/03/00 	combo->SetIndex(index);

	return TRUE;  // return TRUE unless you set the focus to a control
	              // EXCEPTION: OCX Property Pages should return FALSE
}