Ejemplo n.º 1
0
void CBattleDetail::OnSelectRlistboxbtm(long row, long column) 
{
	CRListBox* rlistbox;

	rlistbox=GETDLGITEM(IDC_RLISTBOXBTM);
	rlistbox->SetHilightRow(-1);
	
}
Ejemplo n.º 2
0
void CommsChat::OnReturnPressedPlayerchat(LPCTSTR text) 
{
	if (text[0])
	{
		CRListBox* rlistbox;
		CREdit* poo;

		rlistbox=GETDLGITEM(IDC_RLIST_INCOMING_CHAT);
//DeadCode RDH 14Dec99 		if (!strcmp(text,"megashootcheaton"))
//DeadCode RDH 14Dec99 		{
//DeadCode RDH 14Dec99 			_DPlay.megashootcheat=true;
//DeadCode RDH 14Dec99 		}
//DeadCode RDH 14Dec99 		else if (!strcmp(text,"megashootcheatoff"))
//DeadCode RDH 14Dec99 		{
//DeadCode RDH 14Dec99 			_DPlay.megashootcheat=false;
//DeadCode RDH 14Dec99 		}
//DeadCode RDH 14Dec99 		else if (!strcmp(text,"invulnerablecheaton"))
//DeadCode RDH 14Dec99 		{
//DeadCode RDH 14Dec99 			_DPlay.megashootcheat=false;
//DeadCode RDH 14Dec99 		}
//DeadCode RDH 14Dec99 		else if (!strcmp(text,"invulnerablecheatoff"))
//DeadCode RDH 14Dec99 		{
//DeadCode RDH 14Dec99 			_DPlay.megashootcheat=false;
//DeadCode RDH 14Dec99 		}
//DeadCode RDH 14Dec99 		else if (!strcmp(text,"liftcheaton"))
//DeadCode RDH 14Dec99 		{
//DeadCode RDH 14Dec99 			_DPlay.liftcheat=true;
//DeadCode RDH 14Dec99 		}
//DeadCode RDH 14Dec99 		else if (!strcmp(text,"liftcheatoff"))
//DeadCode RDH 14Dec99 		{
//DeadCode RDH 14Dec99 			_DPlay.liftcheat=false;
//DeadCode RDH 14Dec99 		}
//DeadCode RDH 14Dec99 		else
		{
//DeadCode AMM 16Nov99 			rlistbox=GETDLGITEM(IDC_RLIST_INCOMING_CHAT);

	//DeadCode AMM 05Aug98 	rlistbox->AddString(&_DPlay.PlayerName[0],0);
			rlistbox->AddString((DPlay::H2H_Player+_DPlay.mySlot)->name,0);
			rlistbox->AddString(text,1);
	//	_DPlay.UISendDialogue((DPlay::H2H_Player+_DPlay.mySlot),(char*)text);
			_DPlay.UISendDialogue((char*)text);
			_DPlay.AddChatMessageToBuffer((DPlay::H2H_Player+_DPlay.mySlot)->name,(char*)text);

//DeadCode AMM 12Oct00 			if (!strcmp(text,"whateveron"))
//DeadCode AMM 12Oct00 				_DPlay.whatever=true;
//DeadCode AMM 12Oct00 			else if (!strcmp(text,"whateveroff"))
//DeadCode AMM 12Oct00 				_DPlay.whatever=false;
		}
		rlistbox->SetHilightRow(-1) ;							//AMM 10Jul99
		poo=GETDLGITEM(IDC_PLAYERCHAT);
		poo->SetCaption("");										  //AMM 06/07/99

//DeadCode AMM 07Jul99 		poo->SetWindowText("");
	}
	
}
Ejemplo n.º 3
0
void CBattleDetail::FillBtmBox()
{
		CRListBox* rlistbox;
	rlistbox=GETDLGITEM(IDC_RLISTBOXBTM);
	rlistbox->Clear();
	rlistbox->AddColumn(120);
	rlistbox->AddColumn(40);
	rlistbox->AddColumn(64);
	rlistbox->AddColumn(100);

	rlistbox->AddString(RESSTRING(UNIT),0);
	rlistbox->AddString(RESSTRING(SIZE),1);
	rlistbox->AddString(RESSTRING(STATUS),2);
	rlistbox->AddString(RESSTRING(LOCATION),3);

	TeamDef* topteam = &node->supplyline->groundbattle.teamlist[teams[currrow]];
	if (teams[currrow] != -1)
	{
//DeadCode RDH 14Jun99 		CRListBox* rlistbox;
//DeadCode RDH 14Jun99 		rlistbox=GETDLGITEM(IDC_RLISTBOXBTM);
		for (int i=0;i<node->supplyline->groundbattle.usedteams;i++)
		{
			if (node->supplyline->groundbattle.teamlist[i].team!=blueforce)
			{
				TeamDef* btmteam = &node->supplyline->groundbattle.teamlist[i];
				 
				if	(		(btmteam->nextnode == topteam->node)
						||	(btmteam->node == topteam->nextnode)
						||	(btmteam->node == topteam->node)
						||	(btmteam->nextnode == topteam->nextnode)
					)
					
				{
					rlistbox->AddString(LoadResString(node->supplyline->groundbattle.teamlist[i].forcename),0);
					rlistbox->AddString(CSprintf(" %i",node->supplyline->groundbattle.teamlist[i].strength/100),1);
					rlistbox->AddString(LoadResString(IDS_L_INACTIVE + node->supplyline->groundbattle.teamlist[i].action),2);
					CString string, string2;
					string.LoadString(node->supplyline->groundbattle.teamlist[i].node->mainids);
					if (string.GetLength() > 0)
					{
						string.TrimLeft();
						string2 = string;
						string2.MakeUpper();
						string.SetAt(0, string2.GetAt(0));
	//DEADCODE RDH 03/04/99 					rlistbox->AddString(LoadResString(node->supplyline->groundbattle.teamlist[i].node->mainids),3);
						rlistbox->AddString(string,3);
					}				
				}
			}
		}
		rlistbox=GETDLGITEM(IDC_RLISTBOXTOP);
		rlistbox->SetHilightRow(currrow+1);
	}
}
Ejemplo n.º 4
0
Bool RFullPanelDial::ViewerOptionsInit()
{	LoadCol();
	LaunchDial(new CSViewer,0);
	CRListBox* prlistbox;
	prlistbox=GETDLGITEM(IDC_RLISTBOX);
	prlistbox->SetHilightCol(3);
	prlistbox->ReplaceString("",0,4);
	prlistbox->SetColumnWidth(4,col4   );
	prlistbox->SetColumnWidth(5,collast);
	prlistbox->SetHilightRow(0);
	return TRUE;
}
Ejemplo n.º 5
0
Bool RFullPanelDial::TwoDOptionsInit()
{	LoadCol();
	LaunchDial(new TwoDPref,0);
	CRListBox* prlistbox;
	prlistbox=GETDLGITEM(IDC_RLISTBOX);
	prlistbox->SetHilightCol(4);
	prlistbox->SetHilightRow(0);
	prlistbox->ReplaceString("",0,5);
	prlistbox->SetColumnWidth(5,col5   );
	prlistbox->SetColumnWidth(6,collast);
	return TRUE;
}
Ejemplo n.º 6
0
BOOL EndOfDayReviewList::OnInitDialog() 
{
	CDialog::OnInitDialog();
	
	FillList();
	Refresh();
	CRListBox* rlistbox;
	rlistbox=GETDLGITEM(IDC_RLISTBOXCTRL1);
	rlistbox->SetHilightRow(1);
	
	return TRUE;  // return TRUE unless you set the focus to a control
	              // EXCEPTION: OCX Property Pages should return FALSE
}
Ejemplo n.º 7
0
BOOL CSelectService::OnInitDialog() 
{
	CDialog::OnInitDialog();
	
	CRListBox* rlistbox;
	CString string;

	rlistbox=GETDLGITEM(IDC_RLIST_SELECTSERVICE);
	rlistbox->Clear();
	rlistbox->AddColumn(200);


	LPENUMSERVICE temp;

	temp=_DPlay.ServiceList;
	while (temp)
	{
		rlistbox->AddString(temp->sname,0);
		temp=temp->Next;
	}

	temp=_DPlay.ServiceList;
	int row  = 0;
	while	(	(temp)
			&&	(strcmp(temp->sname,_DPlay.ServiceName))
			)
	{
		temp=temp->Next;
		row++;
	}
	if (!temp)
	{
		row = 0;
		temp=_DPlay.ServiceList;
		if (temp)
		{
			strcpy(_DPlay.ServiceName,temp->sname);
		}
	}
	rlistbox->SetHilightRow(row);

// OK, a new session a new chance to process some messages...cool eh?

	_DPlay.LeaveCommsFlag=FALSE;
	_DPlay.HostQuitFlag=FALSE;
//	_DPlay.GameType=DEATHMATCH;

	return TRUE;  // return TRUE unless you set the focus to a control
	              // EXCEPTION: OCX Property Pages should return FALSE
}
Ejemplo n.º 8
0
BOOL CSCampaign::OnInitDialog() 
{
	CDialog::OnInitDialog();
	
	CRListBox* rlistbox;
	CString string;

	rlistbox=GETDLGITEM(IDC_RLIST_CAMPAIGNS);
//DeadCode JIM 27Sep00 	rlistbox->Clear();
//DeadCode JIM 27Sep00 	rlistbox->AddColumn(100);
//DeadCode JIM 27Sep00 	rlistbox->AddColumn(100);
//DeadCode JIM 27Sep00 	rlistbox->AddColumn(100);
//DeadCode JIM 27Sep00 	rlistbox->AddColumn(100);
//DEADCODE RDH 26/10/99    	rlistbox->AddColumn(100);

	string.LoadString(IDS_L_SCAMPAIGNSELECT1);
	rlistbox->AddString(string,0);
	string.LoadString(IDS_SCAMPAIGNSELECT2);
	rlistbox->AddString(string,1);
	string.LoadString(IDS_SCAMPAIGNSELECT3);
	rlistbox->AddString(string,2);
	string.LoadString(IDS_SCAMPAIGNSELECT4);
	rlistbox->AddString(string,3);

//DEADCODE RDH 26/10/99    	string.LoadString(IDS_L_SCAMPAIGNDATE1);
//DEADCODE RDH 26/10/99 	rlistbox->AddString(string,1);
//DEADCODE RDH 26/10/99 	string.LoadString(IDS_SCAMPAIGNDATE2A);
//DEADCODE RDH 26/10/99 	rlistbox->AddString(string,1);
//DEADCODE RDH 26/10/99 	string.LoadString(IDS_SCAMPAIGNDATE3A);
//DEADCODE RDH 26/10/99 	rlistbox->AddString(string,1);
//DEADCODE RDH 26/10/99 	string.LoadString(IDS_SCAMPAIGNDATE4A);
//DEADCODE RDH 26/10/99 	rlistbox->AddString(string,1);

	rlistbox->SetHilightRow(0);
	rlistbox->SetHilightCol(0);
	RefreshDate(0);



	return TRUE;  // return TRUE unless you set the focus to a control
	              // EXCEPTION: OCX Property Pages should return FALSE
}
Ejemplo n.º 9
0
void HostilesList::FindHiLight()
{
	CRListBox* rlistbox;
	rlistbox=GETDLGITEM(IDC_RLISTBOXCTRL1);
	currpack = -1;
	int p=0;
	while  (		(packlist[p].pack != 65535)
				&&	!(	(packlist[p].pack == Todays_Packages.hipack)
						&&	CorrectSquad(p)
					)
			)
	{
		p++;
	}
	if (		(packlist[p].pack == Todays_Packages.hipack)
			&&	CorrectSquad(p)
		)
	{
			currpack = p;
			rlistbox->SetHilightRow(currpack+1);
	}
}
Ejemplo n.º 10
0
void CBattleDetail::FillTopBox()
{
	CRListBox* rlistbox;
	rlistbox=GETDLGITEM(IDC_RLISTBOXTOP);


		int cnt = 0;
		for (int i=0;i<node->supplyline->groundbattle.usedteams;i++)
		{
			if (node->supplyline->groundbattle.teamlist[i].team==blueforce)
			{
				if (forceu == node->supplyline->groundbattle.teamlist[i].location)
					currrow = cnt; 
				teams[cnt++] = i;
				rlistbox->AddString(LoadResString(node->supplyline->groundbattle.teamlist[i].forcename),0);
				rlistbox->AddString(CSprintf(" %i",node->supplyline->groundbattle.teamlist[i].strength/100),1);
				rlistbox->AddString(LoadResString(IDS_L_INACTIVE + node->supplyline->groundbattle.teamlist[i].namedaction),2);
				CString string, string2;
				string.LoadString(node->supplyline->groundbattle.teamlist[i].node->mainids);
				if (string.GetLength() > 0)
				{
					string.TrimLeft();
					string2 = string;
					string2.MakeUpper();
					string.SetAt(0, string2.GetAt(0));

					
	//DEADCODE RDH 03/04/99 				rlistbox->AddString(LoadResString(node->supplyline->groundbattle.teamlist[i].node->mainids),3);
					rlistbox->AddString(string,3);
				}
			}


		}
		rlistbox->SetHilightRow(currrow+1);

}
Ejemplo n.º 11
0
void RAFDiaryList::Refresh()
{

//DEADCODE  10/02/00 	FindDetails();
	
	CRRadio* pradio;

	pradio=GETDLGITEM(IDC_RRADIODISPLAY);
	pradio->AddButton(RESSTRING(VIEWSINGLE));
	pradio->AddButton(RESSTRING(ALL));
  	pradio->SetCurrentSelection(1);


	CRListBox* rlistbox;
	rlistbox=GETDLGITEM(IDC_RLISTBOXCTRL1);
	rlistbox->Clear();
	rlistbox->AddColumn(100);
	rlistbox->AddColumn(1);
	rlistbox->AddColumn(60);
	rlistbox->AddColumn(60);
	rlistbox->AddColumn(70);
	rlistbox->AddColumn(TARGETFIELDWIDTH+50);										  //RDH 02/06/99
	rlistbox->AddColumn(60);

	
	rlistbox->AddString(RESSTRING(DATE),0);
	rlistbox->AddString("",1);
	rlistbox->AddString(RESSTRING(SIZE),2);
	rlistbox->AddString(RESSTRING(TO),3);
	rlistbox->AddString(RESSTRING(MISSION),4);
	rlistbox->AddString(RESSTRING(TARGET),5);
	rlistbox->AddString(RESSTRING(TALLY),6);


	Diary::RaidGroup* raidgroup;

	Diary::Intercept* intercept;
	Diary::Squadron*	sqentry;
	int i = 0;
 	while (	(i < RAFDiary::MAX_SQDETAILS) && (sqdtlsptr[i]))
 	{
		sqentry = (Diary::Squadron*)sqdtlsptr[i];
		intercept = Squad_Diary.GetIntercept(sqdtlsptr[i]);
		if (intercept)
		{
 			raidgroup = Squad_Diary.GetRaidGroup(intercept);
			//date
			if (raidgroup)
			{
				Diary::RaidPack* raidpack = Squad_Diary.GetRaidPack(raidgroup);
				if (raidpack)
		 			rlistbox->AddString(GetDateName(raidpack->date * SECSPERDAY, DATE_LONG),0);
			}
 
 			//TIME! NOT raid
//DeadCode JIM 15Oct00 			char* raidletter="F%03i";
//DeadCode JIM 15Oct00 			rlistbox->AddString(GetTimeName(intercept->takeofftime),1);

	//DEADCODE RDH 15/05/00  		rlistbox->AddString(CSprintf("F%i", intercept->diaryraidindex),1);
 			
 			//size
 				rlistbox->AddString(CSprintf("%i",sqentry->noaclaunched),2);

 			//to
 			int t=intercept->takeofftime/60;
 			rlistbox->AddString(CSprintf("%02i:%02i",t/60,t%60),3);
 
 			//mission
 			int cnt = int(!intercept->waspatrolinitially);				//RJS 29Aug00
 			rlistbox->AddString(RESLIST(AM_PATROL, cnt),4);
 
 			//target
 			if(!intercept->interceptloc)
 				rlistbox->AddString(RESSTRING(DASH),5);
 			//tally
 			int kills = 0;
			for (int k = 0; k < 5; k++)
				kills += sqentry->kills[k];
 			rlistbox->AddString(CSprintf("+%i -%i", kills, sqdtlsptr[i]->numlosses),6);
		} 
 
 		i++;
 	}
 
	rlistbox->SetHilightRow(*currentptr+1);


}
Ejemplo n.º 12
0
void	LWRouteMain::RefreshList()
{
	CString buffer;
	CRListBox* rlistbox;
	rlistbox=GETDLGITEM(IDC_RLISTBOXCTRL1);
//DeadCode RDH 31Oct00 	rlistbox->AddString("",0);
	rlistbox->Clear();
		//rlistbox->AddColumn(160);
		//rlistbox->AddColumn(TARGETFIELDWIDTH);										  //RDH 02/06/99
		//rlistbox->AddColumn(70);										  //RDH 02/06/99
		//rlistbox->AddColumn(50);										  //RDH 02/06/99
		//rlistbox->AddColumn(50);
//DEADCODE RDH 06/01/00 	rlistbox->AddColumn(50);
//DEADCODE RDH 06/01/00 	rlistbox->AddColumn(50);
	rlistbox->AddString("",0);
	rlistbox->AddString(RESSTRING(RELTOT),4);
//DeadCode JIM 19Sep00 	if ((tab == 0) || (tab ==4))
//DeadCode JIM 19Sep00 	{
//DeadCode JIM 19Sep00 		if (RFullPanelDial::gameside == RFullPanelDial::SIDE_LW)
//DeadCode JIM 19Sep00 			rlistbox->AddString(RESSTRING(GRUPPE),1);
//DeadCode JIM 19Sep00 		else
//DeadCode JIM 19Sep00 			rlistbox->AddString(RESSTRING(SQUADRON),1);
//DeadCode JIM 19Sep00 
//DeadCode JIM 19Sep00 	}else
		rlistbox->AddString(RESSTRING(LOCATION),1);
	rlistbox->AddString(RESSTRING(ALT),2);
	rlistbox->AddString(RESSTRING(ETA),3);

//DeadCode JIM 20Oct00 	WpState wpstate = FIRST;

	FillWpList();

//DEADCODE  23/02/00 	int currhilight = -1;
//DEADCODE  23/02/00 	if (Todays_Packages.pack[Todays_Packages.hipack].packagestatus!=Profile::PS_SPARE)
//DEADCODE  23/02/00 	{
//DEADCODE  23/02/00 		Profile& pack = Todays_Packages.pack[Todays_Packages.hipack];
//DEADCODE  23/02/00 
//DEADCODE  23/02/00 		UniqueID wpuid = pack.route;
//DEADCODE  23/02/00 		int i=1;
//DEADCODE  23/02/00 		while (wpuid)
//DEADCODE  23/02/00 		{
//DEADCODE  23/02/00 			info_waypoint* wp=*Persons2::ConvertPtrUID(wpuid);
//DEADCODE  23/02/00 			wpstate = (WpState)UpdateWpType(wp, wpstate);
//DEADCODE  23/02/00 
//DEADCODE  23/02/00  			if (	(wpstate == FIRSTTAKEOFF)
//DEADCODE  23/02/00 				||	(wpstate == INGRESS)
//DEADCODE  23/02/00 				||	(wpstate == EGRESS)
//DEADCODE  23/02/00 				)
//DEADCODE  23/02/00 			{
//DEADCODE  23/02/00 				rlistbox->AddString(LoadResString(Profile::WPType(wpuid)),0);
//DEADCODE  23/02/00 //DEADCODE RDH 05/01/00 			rlistbox->AddString(RESLIST(MAIN_WP_GAP,i++),0);
//DEADCODE  23/02/00 			if (	(wp->target != GOT_UNDEFINED_VAL)
//DEADCODE  23/02/00 				&&	 (wp->target.Evaluate())
//DEADCODE  23/02/00 				)
//DEADCODE  23/02/00 				rlistbox->AddString(GetTargName((UniqueID)wp->target.Evaluate()),1);
//DEADCODE  23/02/00 
//DEADCODE  23/02/00 			int alt = (wp->World.Y*10)/Save_Data.alt.mediummm;
//DEADCODE  23/02/00 			alt = 100*((alt + 50)/100);
//DEADCODE  23/02/00 						rlistbox->AddString(CSprintf("%i%s",alt,LoadResString(Save_Data.alt.mediumabbr)),2);
//DEADCODE  23/02/00 
//DEADCODE  23/02/00 			int t=wp->etas/60;
//DEADCODE  23/02/00 			rlistbox->AddString(CSprintf("%02i:%02i",t/60,t%60),3);
//DEADCODE  23/02/00 			t=t - pack.primarytargetETA/60;
//DEADCODE  23/02/00 		    if (t>=0)
//DEADCODE  23/02/00 				rlistbox->AddString(CSprintf("%02i:%02i",+t/60,t%60),4);
//DEADCODE  23/02/00 			else
//DEADCODE  23/02/00 				rlistbox->AddString(CSprintf("-%02i:%02i",-t/60,-t%60),4);
//DEADCODE  23/02/00 		
//DEADCODE  23/02/00 
//DEADCODE  23/02/00 			if (Todays_Packages.hiwp == wpuid)
//DEADCODE  23/02/00 				currhilight = i;
//DEADCODE  23/02/00 			
//DEADCODE  23/02/00 			i++;
//DEADCODE  23/02/00 			}
//DEADCODE  23/02/00 			wpuid = wp->nextwp;
//DEADCODE  23/02/00 		}
//DEADCODE  23/02/00 
//DEADCODE  23/02/00 	}

		int i = 0;
		Profile& pack = Todays_Packages.pack[Todays_Packages.hipack];
	int currhilight = -1;

		while (WpList[i])
		{
			info_waypoint* wp=*Persons2::ConvertPtrUID(WpList[i]);
			if (wp->applygroup.Evaluate()!=ENABLE_COMPLEX_VAL)
			{
				Squadron& sq=pack[wp->applygroup.Evaluate()].Squadron();
				if (pack.attackmethod<Profile::AM_LWPACKS)
	 				rlistbox->AddString(LoadResString(Profile::WPType(WpList[i]))+" ("+sq.ShortName() + ")",0);
				else
	 				rlistbox->AddString(LoadResString(Profile::WPType(WpList[i]))+" ("+sq.ShortName() + "/"+ sq.SubName()+")",0);
			}
			else
			if (wp->applywave.Evaluate()!=ENABLE_COMPLEX_VAL && wp->applywave.Evaluate()>=0)
	 			rlistbox->AddString(CSprintf("%i: %s",wp->applywave.Evaluate(),LoadResString(Profile::WPType(WpList[i]))),0);
			else
				rlistbox->AddString(LoadResString(Profile::WPType(WpList[i])),0);

//DeadCode JIM 12Sep00 			if (tab == 0)
//DeadCode JIM 12Sep00 			{
//DeadCode JIM 12Sep00 					int k =0;
//DeadCode JIM 12Sep00 					while  (		(k < pack.squadlist) 
//DeadCode JIM 12Sep00 								&&	 (pack[k].takeoffwp != WpList[i])
//DeadCode JIM 12Sep00 							)
//DeadCode JIM 12Sep00 						k++;
//DeadCode JIM 12Sep00 					if (k < pack.squadlist)
//DeadCode JIM 12Sep00 					{
//DeadCode JIM 12Sep00 						Squadron* sq;
//DeadCode JIM 12Sep00 						sq = &Node_Data[pack[k].squadnum];
//DeadCode JIM 12Sep00 						CString name = ;
//DeadCode JIM 12Sep00 						name = name + sq->SubName();
//DeadCode JIM 12Sep00 
//DeadCode JIM 12Sep00 						rlistbox->AddString(name,1);
//DeadCode JIM 12Sep00 					}else
//DeadCode JIM 12Sep00 						rlistbox->AddString("",1);
//DeadCode JIM 12Sep00 
//DeadCode JIM 12Sep00 			}else if (tab ==4)
//DeadCode JIM 12Sep00 			{
//DeadCode JIM 12Sep00 					int k =0;
//DeadCode JIM 12Sep00 					Squadron* sq;
//DeadCode JIM 12Sep00 					while  ((k < pack.squadlist) && (pack[k].landingwp != WpList[i]) )	//RDH 29/03/00
//DeadCode JIM 12Sep00 						k++;
//DeadCode JIM 12Sep00 					if (k < pack.squadlist)
//DeadCode JIM 12Sep00 					{
//DeadCode JIM 12Sep00 						sq = &Node_Data[pack[k].squadnum];
//DeadCode JIM 12Sep00 						CString name = sq->ShortName() + "/";
//DeadCode JIM 12Sep00 						name = name + sq->SubName();
//DeadCode JIM 12Sep00 
//DeadCode JIM 12Sep00 						rlistbox->AddString(name,1);
//DeadCode JIM 12Sep00 					}else
//DeadCode JIM 12Sep00 						rlistbox->AddString("",1);
//DeadCode JIM 12Sep00 			}
//DeadCode JIM 12Sep00 			else
			{
				int& gri=wp->target.UsesGlobRef();
				if (&gri!=&EventVal::minus1)
				{
					int theref=gri;
					if (theref<=SGR_Pack_Target9 && theref>=SGR_Pack_Target)
						rlistbox->AddString(GetTargName(Todays_Packages.pack[Todays_Packages.hipack].packagetarget[theref-SGR_Pack_Target]),1);
					else
					if (theref==SGR_Pack_DogLeg)
   						rlistbox->AddString(GetTargName(Todays_Packages.pack[Todays_Packages.hipack].doglegloc),1);
					else
						rlistbox->AddString(_MsgBuffer.GetPlaceName(wp->World),1);
				}
				else
				if (	(wp->target != GOT_UNDEFINED_VAL)
					&&	 (wp->target.Evaluate())
					)
						rlistbox->AddString(GetTargName((UniqueID)wp->target.Evaluate()),1);
				else
				{
					CString name = _MsgBuffer.GetPlaceName(wp->World);	//RJS 27Mar00
					rlistbox->AddString(name,1);
				}
			}
			if (Profile::WPType(WpList[i]) == IDS_WP_TAKEOFF)
					rlistbox->AddString("",2);
			else
			{
				int alt = (wp->World.Y*10)/Save_Data.alt.mediummm;
				alt = 100*((alt + 50)/100);
				rlistbox->AddString(CSprintf("%i%s",alt,LoadResString(Save_Data.alt.mediumabbr)),2);
			}
			int t=wp->etas/60;
			rlistbox->AddString(CSprintf("%02i:%02i",t/60,t%60),3);
			t=t - pack.primarytargetETA/60;
		    if (t>=0)
				rlistbox->AddString(CSprintf("%02i:%02i",+t/60,t%60),4);
			else
				rlistbox->AddString(CSprintf("-%02i:%02i",-t/60,-t%60),4);
		
				if (Todays_Packages.hiwp == WpList[i])
					currhilight = i + 1;

			
			i++;
		}


	if (currhilight >= 0)
		rlistbox->SetHilightRow(currhilight);

}