Esempio n. 1
0
void HostilesList::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(HostilesList)
	DDX_Control(pDX, IDC_RLISTBOXCTRL1, m_IDC_RLISTBOXCTRL1);
	DDX_Control(pDX, IDC_RBUTTONAUTHORISE, m_IDC_RBUTTONAUTHORISE);
	DDX_Control(pDX, IDC_RBUTTONASSIGNPATROL, m_IDC_RBUTTONASSIGNPATROL);
	DDX_Control(pDX, IDC_RBUTTONINTELL, m_IDC_RBUTTONINTELL);
	DDX_Control(pDX, IDC_RBUTTONMISSIONFOLDER, m_IDC_RBUTTONMISSIONFOLDER);
	DDX_Control(pDX, IDC_ATTARGET, m_IDC_ATTARGET);
	DDX_Control(pDX, IDC_FORMING, m_IDC_FORMING);
	DDX_Control(pDX, IDC_INCOMING, m_IDC_INCOMING);
	DDX_Control(pDX, IDC_RAID_ENGAGED, m_IDC_RAID_ENGAGED);
	DDX_Control(pDX, IDC_ENGAGED, m_IDC_ENGAGED);
	DDX_Control(pDX, IDC_NORESPONSE, m_IDC_NORESPONSE);
	DDX_Control(pDX, IDC_OUTGOING, m_IDC_OUTGOING);
	DDX_Control(pDX, IDC_RESPONSES, m_IDC_RESPONSES);
	//}}AFX_DATA_MAP
	CRListBox* rlistbox;
	rlistbox=GETDLGITEM(IDC_RLISTBOXCTRL1);
	rlistbox->AddString("",0);
	rlistbox->AddColumn(32);										  //RDH 02/06/99
	rlistbox->AddColumn(20);										  //RDH 02/06/99
	rlistbox->AddColumn(2);
}
Esempio n. 2
0
void CBattleDetail::OnSelectRlistboxbtm(long row, long column) 
{
	CRListBox* rlistbox;

	rlistbox=GETDLGITEM(IDC_RLISTBOXBTM);
	rlistbox->SetHilightRow(-1);
	
}
Esempio n. 3
0
void CSelectSession::OnTimer(UINT nIDEvent) 
{
 	if (nIDEvent==m_timer)
	{
		ULong c1=0,c2=0;
		LPENUMSESSION temp;
		CRListBox* rlistbox;

		temp=_DPlay.SessionList;
		while (temp)
		{
			c1++;
			temp=temp->Next;
		}

		_DPlay.UIGetSessionListUpdate();

		temp=_DPlay.SessionList;
		while (temp)
		{
			c2++;
			temp=temp->Next;
		}

		if (c1!=c2)
		{
			rlistbox=GETDLGITEM(IDC_RLIST_SELECTSESSION);
			rlistbox->Clear();
			rlistbox->AddColumn(200);

			temp=_DPlay.SessionList;
			while (temp)
			{
				if (_DPlay.singlesession)
				{
					strncpy(_DPlay.SessionName,_DPlay.SessionList->sname,59);
					_DPlay.SessionName[59]=NULL;

					KillTimer(m_timer);

					FullPanel()->OnSelectRlistbox(1,1);
					return;

				}
				rlistbox->AddString(temp->sname,0);
				temp=temp->Next;
			}
			currsessrow=-1;
		}

//		if (currsessrow>=0)
//		{
//			rlistbox->SetHilightRow(currsessrow);
//		}
	}
	CDialog::OnTimer(nIDEvent);
}
Esempio n. 4
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("");
	}
	
}
Esempio n. 5
0
void RAFReviewAircraft::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(RAFReviewAircraft)
	DDX_Control(pDX, IDC_RLISTBOXCTRL1, m_IDC_RLISTBOXCTRL1);
	//}}AFX_DATA_MAP
	CRListBox* rlistbox;
	rlistbox=GETDLGITEM(IDC_RLISTBOXCTRL1);
	rlistbox->AddString("",0);
}
Esempio n. 6
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;
}
Esempio n. 7
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;
}
Esempio n. 8
0
void LWReviewStrength::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(LWReviewStrength)
	DDX_Control(pDX, IDC_RLISTBOXCTRL1, m_IDC_RLISTBOXCTRL1);
	DDX_Control(pDX, IDC_RSTATIC_COMMENT, m_IDC_RSTATIC_COMMENT);
	//}}AFX_DATA_MAP
	CRListBox* rlistbox;
	rlistbox=GETDLGITEM(IDC_RLISTBOXCTRL1);
	rlistbox->AddString("",0);

}
Esempio n. 9
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
}
Esempio n. 10
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
}
Esempio n. 11
0
BOOL CSelectSession::OnInitDialog() 
{
	CDialog::OnInitDialog();
	
	m_timer=SetTimer(2365,0,NULL);

	CRListBox* rlistbox;
	CString string;

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

//DeadCode AMM 13Jul98 	ULong temp=_DPlay.JoinNameCount;
//DeadCode AMM 13Jul98 	char** Name=_DPlay.JoinNames;
//DeadCode AMM 13Jul98 
//DeadCode AMM 13Jul98 	while (temp--)
//DeadCode AMM 13Jul98 	{
//DeadCode AMM 13Jul98 		rlistbox->AddString(*Name,0);
//DeadCode AMM 13Jul98 		*Name++;
//DeadCode AMM 13Jul98 	}
//DeadCode AMM 13Jul98 
//DeadCode AMM 13Jul98 	rlistbox->AddString("Dont forget to get some real sessions",0);
//DeadCode AMM 13Jul98 	rlistbox->AddString("and fill in names structure",0);
//DeadCode AMM 13Jul98 	rlistbox->AddString("...",0);
//DeadCode AMM 13Jul98 	rlistbox->AddString("or people wont be able to join!",0);
//DeadCode AMM 13Jul98 	rlistbox->AddString("and that would be a shame",0);
//DeadCode AMM 13Jul98 	rlistbox->AddString("...",0);
//DeadCode AMM 13Jul98 	rlistbox->AddString("wouldnt it?",0);
//DeadCode AMM 13Jul98 	rlistbox->AddString("...",0);
//DeadCode AMM 13Jul98 	rlistbox->AddString("...",0);
//DeadCode AMM 13Jul98 	rlistbox->AddString("how many lines can these things take?",0);

	LPENUMSESSION temp;

	temp=_DPlay.SessionList;
	while (temp)
	{
		rlistbox->AddString(temp->sname,0);
		temp=temp->Next;
	}
	currsessrow=-1;
//DeadCode AMM 12Jul98 	string.LoadString(IDS_SESSION);
//DeadCode AMM 12Jul98 	rlistbox->AddString(string,0);
	
	return TRUE;  // return TRUE unless you set the focus to a control
	              // EXCEPTION: OCX Property Pages should return FALSE
}
Esempio n. 12
0
void	GroupGeschwader::RefreshRAF()
{
		CRListBox* rlistbox;
	rlistbox=GETDLGITEM(IDC_RLISTBOXCTRL2);
	rlistbox->ShowWindow(false);
	rlistbox=GETDLGITEM(IDC_RLISTBOXCTRL1);
//DeadCode JIM 25Aug00 	rlistbox->Clear();
//DeadCode JIM 25Aug00 	rlistbox->AddColumn(SQUADRONPLUSFIELDWIDTH);
//DeadCode JIM 25Aug00 	rlistbox->AddColumn(SQUADRONPLUSFIELDWIDTH);										  //RDH 02/06/99
//DeadCode JIM 25Aug00 	rlistbox->AddColumn(SQUADRONPLUSFIELDWIDTH);										  //RDH 02/06/99
//DeadCode JIM 25Aug00 	rlistbox->AddColumn(SQUADRONPLUSFIELDWIDTH);										  //RDH 02/06/99
//DeadCode JIM 25Aug00 	rlistbox->AddColumn(SQUADRONPLUSFIELDWIDTH);										  //RDH 02/06/99

	FindAirfields();

	//print Sectoraf
	int af =0 ;
	while (Airfields[af][1] != UID_NULL)
	{
		TargetSectorField* afield;
		afield = Node_Data[Airfields[af][0]];

	 	CString afstring = "";
		if (Airfields[af][0])
			afstring= CString(TCHAR(afield->sectorname + '@'));//+ ": " + GetTargName(Airfields[af][0]);
		
		rlistbox->AddString(afstring,0);
		int i = 1;
		while (i < 5)
		{
			if (Airfields[af][i] == UID_NULL)
				rlistbox->AddString("",i);
			else
				PrintAirFieldInfo(af, i );
			i++;
		}
		af++;


	}		
	//print others

}
Esempio n. 13
0
BOOL CommsChat::OnInitDialog() 
{
	CDialog::OnInitDialog();
	CRListBox* rlistbox;
	
	CREdit* e=GETDLGITEM(IDC_PLAYERCHAT);
	e->SetCaption("\b\b\x20");	//set max length of 32 characters
	e->SetCaption("\b\t\v\n");	//block these characters. Space is allowed.
	e->SetCaption("");

	rlistbox=GETDLGITEM(IDC_RLIST_INCOMING_CHAT);
	rlistbox->Clear();
	rlistbox->AddColumn(120);
	rlistbox->AddColumn(30);
	_DPlay.listptr=(UByteP)rlistbox;
	_DPlay.UpdateChatBox();

	return TRUE;  // return TRUE unless you set the focus to a control
	              // EXCEPTION: OCX Property Pages should return FALSE
}
Esempio n. 14
0
void GroupGeschwader::PrintAirFieldInfo(int j, int i)
{
	TargetFighterField* af;
	af = Node_Data[Airfields[j][i]];
	CString maxstring = CSprintf("%i",af->maxsquads);

	int k=0, numsq = 0;
	while (Node_Data.squadron[k].squadron != SQ_ZERO)
	{
 		if (Node_Data.squadron[k].homeairfield == Airfields[j][i])
			numsq++;
		k++;
	}


 	CString afstring = "("+CSprintf("%i", numsq) +"/"+maxstring+") " + GetTargName(Airfields[j][i]);

	CRListBox* rlistbox;
	rlistbox=GETDLGITEM(IDC_RLISTBOXCTRL1);
	rlistbox->AddString(afstring,i);

}
Esempio n. 15
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);
	}
}
Esempio n. 16
0
void EndOfDayReviewList::Refresh()
{
	CRListBox* rlistbox;
	rlistbox=GETDLGITEM(IDC_RLISTBOXCTRL1);
	rlistbox->Clear();
	rlistbox->AddColumn(60);
	rlistbox->AddColumn(TARGETFIELDWIDTH);										  //RDH 02/06/99
	rlistbox->AddString(RESSTRING(DATE),0);
	rlistbox->AddString(RESSTRING(TITLE),1);
	

	CString msgstr;
	for (int i = 0; i < maxmsg; i++)
	{
		rlistbox->AddString(GetDateName(Node_Data.review.messages[msglist[i]].time*SECSPERDAY, DATE_LONG),0);
		msgstr = Node_Data.review.MessageTitleToText(msglist[i]);
		rlistbox->AddString(msgstr,1);
	}

}
Esempio n. 17
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
}
Esempio n. 18
0
void	GroupGeschwader::RefreshGr13()
{
	CRListBox* rlistbox;
	rlistbox=GETDLGITEM(IDC_RLISTBOXCTRL1);
	rlistbox->ShowWindow(false);

	rlistbox=GETDLGITEM(IDC_RLISTBOXCTRL2);
	rlistbox->Clear();
	rlistbox->AddColumn(SQUADRONPLUSFIELDWIDTH);
	rlistbox->AddColumn(SQUADRONPLUSFIELDWIDTH);
		CRStatic*   s;
	
	s=GETDLGITEM(IDC_RSTATICCTRL7);
	s->ShowWindow(false);
	s=GETDLGITEM(IDC_RSTATICCTRL23);
	s->ShowWindow(false);
//RDH 02/06/99

	rlistbox->AddString(RESSTRING(HURRICANES),0);
	rlistbox->AddString(RESSTRING(SPITFIRES),1);

	FindAirfields();
	int k=0, numsq = 0;
	while (Node_Data.squadron[k].squadron != SQ_ZERO)
	{
 		if (Node_Data.squadron[k].homeairfield == Airfields[0][0])
		{
			int actype = Node_Data.squadron[k].AcType();
			int index = 0;
			if	(		(actype == PT_SPIT_A)
					||	(actype == PT_SPIT_B)
				)
				index = 1;
				
			rlistbox->AddString(Node_Data.squadron[k].SubName()+ " "+RESSTRING(SQUADRON),index);
		}

		k++;
	}


}
Esempio n. 19
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);

}
Esempio n. 20
0
BOOL CBattleDetail::OnInitDialog() 
{
	CDialog::OnInitDialog();
	
	CRListBox* rlistbox;
	rlistbox=GETDLGITEM(IDC_RLISTBOXTOP);
	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);


//DeadCode RDH 14Jun99 	rlistbox=GETDLGITEM(IDC_RLISTBOXBTM);
//DeadCode RDH 14Jun99 	rlistbox->Clear();
//DeadCode RDH 14Jun99 	rlistbox->AddColumn(120);
//DeadCode RDH 14Jun99 	rlistbox->AddColumn(40);
//DeadCode RDH 14Jun99 	rlistbox->AddColumn(64);
//DeadCode RDH 14Jun99 	rlistbox->AddColumn(100);
//DeadCode RDH 14Jun99 
//DeadCode RDH 14Jun99 	rlistbox->AddString(RESSTRING(UNIT),0);
//DeadCode RDH 14Jun99 	rlistbox->AddString(RESSTRING(SIZE),1);
//DeadCode RDH 14Jun99 	rlistbox->AddString(RESSTRING(STATUS),2);
//DeadCode RDH 14Jun99 	rlistbox->AddString(RESSTRING(LOCATION),3);

	
	CRStatic*   s0=GETDLGITEM(IDC_RSTATICCTRL2);
	CRStatic*   s1=GETDLGITEM(IDC_RSTATICCTRL3);
	if (tabside == 0)
	{
		s0->SetString(RESSTRING(UNFORCES));
		s1->SetString(RESSTRING(REDFORCES));
	}else
	{
		s1->SetString(RESSTRING(UNFORCES));
		s0->SetString(RESSTRING(REDFORCES));
	}
	
	for (int i=0;i<BattleStruct::MAXTEAMS;i++)
		teams[i] = -1;

	node=SupplyTree::FindSupplyNodeForItem((UniqueID)u);
	if (node)
	{
		if	(		(node->supplyline->initiative==REDATTACKING)
				==	(tabside == 0)
			)
			blueforce = TeamDef::HOME;
		else
			blueforce = TeamDef::AWAY;
		currrow = 0;
		FillTopBox();
		FillBtmBox();
	}else
		currrow = -1;


	return TRUE;  // return TRUE unless you set the focus to a control
	              // EXCEPTION: OCX Property Pages should return FALSE
}
Esempio n. 21
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);
	}
}
Esempio n. 22
0
void LWDiaryDetails::Refresh()
{
		CRRadio* pradio;

	pradio=GETDLGITEM(IDC_RRADIODISPLAY);
	if (quickmission)
		pradio->ShowWindow(false);
	else
		pradio->ShowWindow(true);
	pradio->AddButton(RESSTRING(VIEWSINGLE));
	pradio->AddButton(RESSTRING(ALL));
	pradio->SetCurrentSelection(0);

	CRListBox* rlistbox;
	rlistbox=GETDLGITEM(IDC_RLISTBOXCTRL1);
	rlistbox->Clear();
	rlistbox->AddColumn(60);
	rlistbox->AddColumn(80);										  //RDH 02/06/99
	rlistbox->AddColumn(60);										  //RDH 02/06/99

	rlistbox=GETDLGITEM(IDC_RLISTBOXOTHERS);
	rlistbox->Clear();
	rlistbox->AddColumn(60);
	rlistbox->AddColumn(60);										  //RDH 02/06/99
	rlistbox->AddString(RESSTRING(GRUPPE),0);
	rlistbox->AddString(RESSTRING(TASK),1);
	CRStatic*   s;


	if (		(*currentptr >= 0)
			&&	(grdtlsptr[*currentptr])
		)
	{
		Diary::RaidGroup* raidgroup;
		Diary::Gruppen*	grentry;
	 	raidgroup = Squad_Diary.GetRaidGroup(grdtlsptr[*currentptr]);

		Diary::Gruppen* othergr = Squad_Diary.GetFirstSquadron(raidgroup);
		rlistbox=GETDLGITEM(IDC_RLISTBOXOTHERS);
	

		while (othergr)
		{
			if (othergr != grdtlsptr[*currentptr] && othergr->noaclaunched)
			{
				Squadron* sq = &Node_Data[(SquadNum)othergr->squadnum];
				CString name = sq->ShortName() + "/";
				name = name + sq->SubName();

				rlistbox->AddString(name,0);

				raidgroup = Squad_Diary.GetRaidGroup(othergr);
				int cnt = (int)	raidgroup->misstype;
	 			rlistbox->AddString(RESLIST(MT_RAID, cnt),1);
 
			}
			othergr = Squad_Diary.GetNextSquadron(othergr);
		}


//DeadCode RJS 4Sep00 		raidgroup = Squad_Diary.GetRaidGroup(grdtlsptr[*currentptr]);
		
		
		raidgroup = Squad_Diary.GetRaidGroup(grdtlsptr[*currentptr]);
		if (raidgroup)
		{
			int	theTime = 0;											//RJS 4Sep00

			//raid
			s=GETDLGITEM(IDC_RSTATICDIARYDATE);
			Diary::RaidPack* raidpack = Squad_Diary.GetRaidPack(raidgroup);
			if (raidpack)
			{
				s->SetString(GetDateName(raidpack->date * SECSPERDAY, DATE_LONG));

				int strikeac = 0, attachedac = 0, detachedac = 0,myrole=0;
				TotalUpAc( strikeac, attachedac, detachedac ,myrole);
				s=GETDLGITEM(IDC_RSTATICMAIN);
				myrole&=Profile::AM_GROUPMASK;
				if (myrole==Profile::AM_LWPACKS)
					s->SetString(CSprintf("%i/%i",grdtlsptr[*currentptr]->noaclaunched,strikeac));
				else
					s->SetString(CSprintf("%i",strikeac));
				s=GETDLGITEM(IDC_RSTATICDETACHED);
				if (myrole==Profile::AM_DETACHED)
					s->SetString(CSprintf("%i/%i",grdtlsptr[*currentptr]->noaclaunched,detachedac));
				else
					s->SetString(CSprintf("%i",detachedac));
				s=GETDLGITEM(IDC_RSTATICATTACHED);
				if (myrole>=Profile::AM_ATTACHED)
					s->SetString(CSprintf("%i/%i",grdtlsptr[*currentptr]->noaclaunched,attachedac));
				else
					s->SetString(CSprintf("%i",attachedac));

				EncounteredAcType seenac[3]={{PT_BADMAX}};
				int hurrseen = 0, spitseen = 0, hurrkilled = 0, spitkilled = 0;
				TotalEncounteredAc(seenac);
				CRListBox* rlistbox;
				rlistbox=GETDLGITEM(IDC_RLISTBOXCTRL1);
				rlistbox->AddString(RESSTRING(TYPE),0);
				rlistbox->AddString(RESSTRING(ENCOUNTERED),1);
				rlistbox->AddString(RESSTRING(CLAIMS),2);
//DeadCode JIM 23Oct00 				if (seenac[2].totalkilled)
//DeadCode JIM 23Oct00 					if (seenac[0].encountered==0)
//DeadCode JIM 23Oct00 						seenac[2].localkilled = seenac[0].localkilled;
//DeadCode JIM 23Oct00 					else
//DeadCode JIM 23Oct00 						if (seenac[1].encountered==0)
//DeadCode JIM 23Oct00 							seenac[2].localkilled = seenac[1].localkilled;
				for (int i=0;i<3;i++)
					if (seenac[i].encountered)
					{	
						if (seenac[i].localkilled>seenac[i].totalkilled)
							seenac[i].localkilled=seenac[i].totalkilled;
							
						rlistbox->AddString(RESLIST(SPIT_A,seenac[i].type),0);
 						rlistbox->AddString(CSprintf("%i",seenac[i].encountered),1);
						rlistbox->AddString(CSprintf("%i/%i",seenac[i].localkilled,seenac[i].totalkilled),2);
					}
				rlistbox->AddString(RESSTRING(TOTAL),0);
				rlistbox->AddString(CSprintf("%i",
					seenac[0].encountered+seenac[1].encountered+seenac[2].encountered),1);
				rlistbox->AddString(CSprintf("%i/%i",
					seenac[0].localkilled+seenac[1].localkilled+seenac[2].localkilled,
					seenac[0].totalkilled+seenac[1].totalkilled+seenac[2].totalkilled
					),2);

				theTime = raidpack->takeofftime;						//RJS 4Sep00
			}
			else
			{
				s->SetString("");
				s=GETDLGITEM(IDC_RSTATICMAIN);
				s->SetString("");
				s=GETDLGITEM(IDC_RSTATICDETACHED);
				s->SetString("");
				s=GETDLGITEM(IDC_RSTATICATTACHED);
				s->SetString("");


			}
			s=GETDLGITEM(IDC_RSTATICPERSONNEL);
			s->SetString("");

			s=GETDLGITEM(IDC_RSTATICTARGET);
			if(!raidgroup->target)
			{
				s->SetString("");
				s=GETDLGITEM(IDC_RSTATICRESULT);
				s->SetString("");
			}
			else
			{
				s->SetString(GetTargName(raidgroup->target));

				s=GETDLGITEM(IDC_RSTATICRESULT);
//DeadCode JIM 20Oct00 			 	TargetNoDetail* trg = Node_Data[raidgroup->target];

				CString	missString;										//RJS 9Nov00

				Squad_Diary.GetMissResult(grdtlsptr[*currentptr],raidgroup,missString);

				s->SetString(missString);								//RJS 9Nov00
//DeadCode RJS 09Nov00 				s->SetString(RESLIST(MR_NULL,raidgroup->missresult));
//DeadCode JIM 13Oct00 				int j = trg->PlayerStatus();
//DeadCode JIM 13Oct00 				if	(		(j == Target::TS_FLAG_UNKNOWN))
//DeadCode JIM 13Oct00 					s->SetString(RESSTRING(TT_UNKNOWN));
//DeadCode JIM 13Oct00 				else
//DeadCode JIM 13Oct00 				{
//DeadCode JIM 13Oct00 					if		(j >= Target::TS_NEARLYDESTROYED)		j = 3;
//DeadCode JIM 13Oct00 					elseif	(j>Target::TS_BADDAMAGE)				j=2;
//DeadCode JIM 13Oct00 					elseif	(j>Target::TS_LIGHTDAMAGE)				j=1;
//DeadCode JIM 13Oct00 					else											j=0;
//DeadCode JIM 13Oct00 					s->SetString(RESLIST(UNDAMAGED, j));
//DeadCode JIM 13Oct00 				}
			}

			s=GETDLGITEM(IDC_RSTATICTASK);
			s->SetString(RESLIST(MT_RAID, raidgroup->misstype));

			s=GETDLGITEM(IDC_RSTATICTIME);

			if (raidgroup->targettime)									//RJS 4Sep00
				theTime = raidgroup->targettime;						//RJS 4Sep00
																		//RJS 4Sep00
 			theTime/=60;												//RJS 4Sep00
			s->SetString(CSprintf("%02i:%02i",theTime/60,theTime%60));	//RJS 4Sep00


			s=GETDLGITEM(IDC_RSTATICAIRCRAFT);
			Squadron* sq  = Node_Data[*grnumptr];
			s->SetString(RESLIST(SPIT_A, sq->AcType()));
		}

		s=GETDLGITEM(IDC_RSTATICDAMAGED);
		s->SetString(CSprintf("%i",grdtlsptr[*currentptr]->numacdamaged));

		s=GETDLGITEM(IDC_RSTATICDESTROYED);
		s->SetString(CSprintf("%i",grdtlsptr[*currentptr]->numlosses));
		s=GETDLGITEM(IDC_RSTATICAIRCREW);
		s->SetString(CSprintf("%i",grdtlsptr[*currentptr]->numpilotslost));

	}else
	{



		s=GETDLGITEM(IDC_RSTATICDIARYDATE);
		s->SetString("");
		s=GETDLGITEM(IDC_RSTATICTASK);
		s->SetString("");
		s=GETDLGITEM(IDC_RSTATICTIME);
		s->SetString("");

		s=GETDLGITEM(IDC_RSTATICAIRCRAFT);
		s->SetString("");
		s=GETDLGITEM(IDC_RSTATICRESULT);
		s->SetString("");
		s=GETDLGITEM(IDC_RSTATICTARGET);
		s->SetString("");

		s=GETDLGITEM(IDC_RSTATICMAIN);
		s->SetString("");
		s=GETDLGITEM(IDC_RSTATICDETACHED);
		s->SetString("");
		s=GETDLGITEM(IDC_RSTATICATTACHED);
		s->SetString("");


		s=GETDLGITEM(IDC_RSTATICPERSONNEL);
		s->SetString("");

		s=GETDLGITEM(IDC_RSTATICDAMAGED);
		s->SetString("");
		s=GETDLGITEM(IDC_RSTATICDESTROYED);
		s->SetString("");
		s=GETDLGITEM(IDC_RSTATICAIRCREW);
		s->SetString("");
	}
	RefreshButtons();
}
Esempio n. 23
0
BOOL CRIP_List::OnInitDialog() 
{
	CDialog::OnInitDialog();

	RDialog* parent=(RDialog*)GetParent();
//	parent->SetMaxSize(CRect(0,0,350,350));

	CRStatic*   s;
	s=GETDLGITEM(IDC_RIPDATE);

	
	s->SetString(GetDateName(MMC.ripdate, DATE_LONG));
//	s->SetString(cdate);

	CRListBox* rlistbox;
	rlistbox=GETDLGITEM(IDC_RLISTBOXCTRL1);
	rlistbox->Clear();
	rlistbox->AddColumn(150);
	rlistbox->AddColumn(60);
	rlistbox->AddColumn(70);
	rlistbox->AddColumn(50);

	rlistbox->AddString(RESSTRING(NAME),0);
	rlistbox->AddString(RESSTRING(KILLS),1);
	rlistbox->AddString(RESSTRING(DATE),2);
	rlistbox->AddString(RESSTRING(STATUS),3);
	char buffer[10];

	int i = MMC.nextdeadpilot - 1;
	while (i >= 0)
	{
		rlistbox->AddString(
				MakePilotName(MMC.dead_pilots[i].name),0);
		_itoa(MMC.dead_pilots[i].kills,buffer,10);
		rlistbox->AddString((buffer),1);

		rlistbox->AddString(GetDateName(MMC.dead_pilots[i].lastdate, DATE_SHORT),2);
		rlistbox->AddString(RESLIST(NOTFLYING,MMC.dead_pilots[i].status),3);


		i--;
	}
	i = CASUALTYLIST-1;
	while (i >= MMC.nextdeadpilot)
	{
		if (MMC.dead_pilots[i].lastdate != 0)
		{
			rlistbox->AddString(
				MakePilotName(MMC.dead_pilots[i].name),0);
			_itoa(MMC.dead_pilots[i].kills,buffer,10);
			rlistbox->AddString((buffer),1);

			rlistbox->AddString(GetDateName(MMC.dead_pilots[i].lastdate, DATE_SHORT),2);
			rlistbox->AddString(RESLIST(NOTFLYING,MMC.dead_pilots[i].status),3);
		}

		i--;
	}



//	rlistbox->AddString("20/2/51",0);
//	rlistbox->AddString("20/2/51",0);
//	rlistbox->AddString("20/2/51",0);
//	rlistbox->AddString("M.I.A",1);
//	rlistbox->AddString("W.I.A",1);
//	rlistbox->AddString("K.I.A",1);
//	rlistbox->AddString("Blah Blah",2);
//	rlistbox->AddString("Blah Blah",2);
//	rlistbox->AddString("Blah Blah",2);
	
	return TRUE;  // return TRUE unless you set the focus to a control
	              // EXCEPTION: OCX Property Pages should return FALSE
}
Esempio n. 24
0
BOOL LWReviewAircraft::OnInitDialog() 
{
	CDialog::OnInitDialog();
	
		CRListBox* rlistbox;
	rlistbox=GETDLGITEM(IDC_RLISTBOXCTRL1);
//DeadCode RDH 31Oct00 	rlistbox->AddString("",0);
	rlistbox->Clear();
	//rlistbox->AddColumn(120);		 //MIKE
	//rlistbox->AddColumn(42);										  //RDH 02/06/99
	//rlistbox->AddColumn(42);
	//rlistbox->AddColumn(42);
	//rlistbox->AddColumn(42);										  //RDH 02/06/99
	//rlistbox->AddColumn(42);
	//rlistbox->AddColumn(42);
	//rlistbox->AddColumn(42);										  //RDH 02/06/99
	//rlistbox->AddColumn(42);
	rlistbox->AddString("",0);
	rlistbox->AddString(RESSTRING(L_ME109),1);
	rlistbox->AddString(RESSTRING(ME110),2);
	rlistbox->AddString(RESSTRING(JU87),3);
	rlistbox->AddString(RESSTRING(L_DO17),4);
	rlistbox->AddString(RESSTRING(JU88),5);
	rlistbox->AddString(RESSTRING(HE111),6);
	rlistbox->AddString(RESSTRING(TOTAL),7);

	
	rlistbox->AddString(RESSTRING(AIRCRAFT),0);
	rlistbox->AddString("   "+ RESSTRING(BFCOMBATREADY),0);
	rlistbox->AddString("   "+ RESSTRING(DAMAGED),0);
	rlistbox->AddString("   "+ RESSTRING(REPAIRED),0);
	rlistbox->AddString("   "+ RESSTRING(DESTROYED),0);
	rlistbox->AddString("   "+ RESSTRING(NEW),0);
	rlistbox->AddString("   "+ RESSTRING(CFCOMBATREADY),0);
//DeadCode RDH 28Jun00 	rlistbox->AddString("   "+ RESSTRING(FULLCOMPLEMENT),0);
	rlistbox->AddString(RESSTRING(FACTORIES),0);
	rlistbox->AddString("   "+ RESSTRING(MAXPRODUCTION),0);
	rlistbox->AddString("   "+ RESSTRING(ACTUALPRODUCTION),0);
 	if (RFullPanelDial::gameside == RFullPanelDial::SIDE_LW)
	{
	 	rlistbox->AddString(RESSTRING(REPAIRS)+" / "+RESSTRING(HOUR),0);
		rlistbox->AddString("   "+ RESSTRING(AIRCRAFTINSYSTEM),0);
		rlistbox->AddString("   "+ RESSTRING(MAXREPAIRRATE),0);
		rlistbox->AddString("   "+ RESSTRING(ACTUALREPAIRRATE),0);
	}
	int totalavailablestart = 0;
	int totaldamaged = 0;
	int totalrepaired = 0;
	int totaldestroyed = 0;
	int totalcreated = 0;
	int totalcombatready = 0;
	int	totalmaxfact=0;
	int	totalfact=0;
	float	totalmaxrep=0;
	float	totalrep=0;
	int		totalinsys=0;

	for (int i = 0; i <6; i++)
	{
		rlistbox->AddString("",1+i);
		rlistbox->AddString(CSprintf("%i",MMC.thisweekreview.lw[i].availablestart),1+i);
		rlistbox->AddString(CSprintf("%i",MMC.thisweekreview.lw[i].damaged),1+i);
		rlistbox->AddString(CSprintf("%i",MMC.thisweekreview.lw[i].repaired),1+i);
		rlistbox->AddString(CSprintf("%i",MMC.thisweekreview.lw[i].destroyed),1+i);
		rlistbox->AddString(CSprintf("%i",MMC.thisweekreview.lw[i].created),1+i);
		int combatready = MMC.thisweekreview.lw[i].availablestart -
							MMC.thisweekreview.lw[i].damaged + 
							MMC.thisweekreview.lw[i].repaired - 
							MMC.thisweekreview.lw[i].destroyed +
							MMC.thisweekreview.lw[i].created;
		rlistbox->AddString(CSprintf("%i",combatready),1+i);


		rlistbox->AddString("",1+i);	//FACTORIES
		rlistbox->AddString(CSprintf("%i",Node_Data.production[PT_ME109+i].maxacperweek),1+i);
		rlistbox->AddString(CSprintf("%i",Node_Data.production[PT_ME109+i].acperweek),1+i);
 		if (RFullPanelDial::gameside == RFullPanelDial::SIDE_LW)
		{
			rlistbox->AddString("",1+i);	//REPAIRS
			rlistbox->AddString(CSprintf("%i",MMC.thisweekreview.lw[i].repairsinsystem),i+1);
			rlistbox->AddString(CSprintf("%4.1f",(MMC.thisweekreview.lw[i].potentialrepairs/4.5)),i+1);
			rlistbox->AddString(CSprintf("%4.1f",(MMC.thisweekreview.lw[i].newrepairs/4.5)),i+1);
		}
//DeadCode RDH 28Jun00 		rlistbox->AddString("",1+i);
		totalavailablestart += MMC.thisweekreview.lw[i].availablestart;
		totaldamaged += MMC.thisweekreview.lw[i].damaged;
		totalrepaired += MMC.thisweekreview.lw[i].repaired;
		totaldestroyed += MMC.thisweekreview.lw[i].destroyed;
		totalcreated += MMC.thisweekreview.lw[i].created;
		totalcombatready += combatready;
		totalmaxfact+=Node_Data.production[PT_ME109+i].maxacperweek;
		totalfact+=Node_Data.production[PT_ME109+i].acperweek;
		totalmaxrep+=MMC.thisweekreview.lw[i].potentialrepairs/4.5;
		totalrep+=MMC.thisweekreview.lw[i].newrepairs/4.5;
		totalinsys+=MMC.thisweekreview.lw[i].repairsinsystem;

	}
	rlistbox->AddString("",7);
	rlistbox->AddString(CSprintf("%i",totalavailablestart),7);
	rlistbox->AddString(CSprintf("%i",totaldamaged),7);
	rlistbox->AddString(CSprintf("%i",totalrepaired),7);
	rlistbox->AddString(CSprintf("%i",totaldestroyed),7);
	rlistbox->AddString(CSprintf("%i",totalcreated),7);
	rlistbox->AddString(CSprintf("%i",totalcombatready),7);
	rlistbox->AddString("",7);
	rlistbox->AddString(CSprintf("%i",totalmaxfact),7);
	rlistbox->AddString(CSprintf("%i",totalfact),7);
 	if (RFullPanelDial::gameside == RFullPanelDial::SIDE_LW)
	{
		rlistbox->AddString("",7);
		rlistbox->AddString(CSprintf("%i",totalinsys),7);
		rlistbox->AddString(CSprintf("%4.1f",totalmaxrep),7);
		rlistbox->AddString(CSprintf("%4.1f",totalrep),7);
	}
//DeadCode RDH 28Jun00 	rlistbox->AddString("",7);


//DEADCODE  17/02/00 	rlistbox->AddString("",1);
//DEADCODE  17/02/00 	rlistbox->AddString("80",1);
//DEADCODE  17/02/00 	rlistbox->AddString("20",1);
//DEADCODE  17/02/00 	rlistbox->AddString("5",1);
//DEADCODE  17/02/00 	rlistbox->AddString("20",1);
//DEADCODE  17/02/00 	rlistbox->AddString("20",1);
//DEADCODE  17/02/00 	rlistbox->AddString("65",1);
//DEADCODE  17/02/00 	rlistbox->AddString("120",1);
//DEADCODE  17/02/00 	rlistbox->AddString("",1);
//DEADCODE  17/02/00 	rlistbox->AddString("80",1);
//DEADCODE  17/02/00 	rlistbox->AddString("20",1);
//DEADCODE  17/02/00 	rlistbox->AddString("",1);
//DEADCODE  17/02/00 	rlistbox->AddString("80",1);
//DEADCODE  17/02/00 	rlistbox->AddString("20",1);
//DEADCODE  17/02/00 	rlistbox->AddString("10",1);
//DEADCODE  17/02/00 
//DEADCODE  17/02/00 	rlistbox->AddString("",2);
//DEADCODE  17/02/00 	rlistbox->AddString("80",2);
//DEADCODE  17/02/00 	rlistbox->AddString("20",2);
//DEADCODE  17/02/00 	rlistbox->AddString("5",2);
//DEADCODE  17/02/00 	rlistbox->AddString("20",2);
//DEADCODE  17/02/00 	rlistbox->AddString("20",2);
//DEADCODE  17/02/00 	rlistbox->AddString("65",2);
//DEADCODE  17/02/00 	rlistbox->AddString("120",2);
//DEADCODE  17/02/00 	rlistbox->AddString("",2);
//DEADCODE  17/02/00 	rlistbox->AddString("80",2);
//DEADCODE  17/02/00 	rlistbox->AddString("20",2);
//DEADCODE  17/02/00 	rlistbox->AddString("",2);
//DEADCODE  17/02/00 	rlistbox->AddString("80",2);
//DEADCODE  17/02/00 	rlistbox->AddString("20",2);
//DEADCODE  17/02/00 	rlistbox->AddString("10",2);
//DEADCODE  17/02/00 
//DEADCODE  17/02/00 	rlistbox->AddString("",3);
//DEADCODE  17/02/00 	rlistbox->AddString("80",3);
//DEADCODE  17/02/00 	rlistbox->AddString("20",3);
//DEADCODE  17/02/00 	rlistbox->AddString("5",3);
//DEADCODE  17/02/00 	rlistbox->AddString("20",3);
//DEADCODE  17/02/00 	rlistbox->AddString("20",3);
//DEADCODE  17/02/00 	rlistbox->AddString("65",3);
//DEADCODE  17/02/00 	rlistbox->AddString("120",3);
//DEADCODE  17/02/00 	rlistbox->AddString("",3);
//DEADCODE  17/02/00 	rlistbox->AddString("80",3);
//DEADCODE  17/02/00 	rlistbox->AddString("20",3);
//DEADCODE  17/02/00 	rlistbox->AddString("",3);
//DEADCODE  17/02/00 	rlistbox->AddString("80",3);
//DEADCODE  17/02/00 	rlistbox->AddString("20",3);
//DEADCODE  17/02/00 	rlistbox->AddString("10",3);


	
	

	
	return TRUE;  // return TRUE unless you set the focus to a control
	              // EXCEPTION: OCX Property Pages should return FALSE
}
Esempio n. 25
0
/////////////////////////////////////////////////////////////////////////////
// PilotLogBook message handlers
void PilotLogBook::RAFRefreshList()
{
		CRListBox* rlistbox;
	rlistbox=GETDLGITEM(IDC_RLISTBOXCTRL1);
//DeadCode RDH 31Oct00 	rlistbox->AddString("",0);
	rlistbox->Clear();
	//rlistbox->AddColumn(70);            //MIKE
	//rlistbox->AddColumn(60);										  //RDH 02/06/99
	//rlistbox->AddColumn(80);										  //RDH 02/06/99
	//rlistbox->AddColumn(90);										  //RDH 02/06/99
	//rlistbox->AddColumn(280);
	//rlistbox->AddColumn(45);										  //RDH 02/06/99
//DeadCode JIM 18Oct00 	rlistbox->AddColumn(30);										  //RDH 02/06/99
	rlistbox->AddString(RESSTRING(DATE),0);
	rlistbox->AddString(RESSTRING(HOUR),1);
	rlistbox->AddString(RESSTRING(ACTYPE),2);
	rlistbox->AddString(RESSTRING(DUTY),3);
	rlistbox->AddString(RESSTRING(REMARKS),4);
	rlistbox->AddString(RESSTRING(CLAIMS),5);
//DeadCode JIM 18Oct00 	rlistbox->AddString(RESSTRING(FLYINGHOURS),6);

	Diary::Player*	pptr;
//TEMPCODE RDH 05/04/00 	//###temp
//TEMPCODE RDH 05/04/00 	int pack=0;
//TEMPCODE RDH 05/04/00 	while (	pack < Profile::MAX_PACKS)
//TEMPCODE RDH 05/04/00 	{
//TEMPCODE RDH 05/04/00 		if (Todays_Packages.pack[pack].packagestatus!=Profile::PS_SPARE)
//TEMPCODE RDH 05/04/00 		{
//TEMPCODE RDH 05/04/00 		 	Profile& pk = Todays_Packages.pack[pack];
//TEMPCODE RDH 05/04/00 			if  (pk.attackmethod < Profile::AM_LWPACKS)
//TEMPCODE RDH 05/04/00 				break;
//TEMPCODE RDH 05/04/00 		}
//TEMPCODE RDH 05/04/00 		pack++;
//TEMPCODE RDH 05/04/00 	}
//TEMPCODE RDH 05/04/00 	RDialog::m_pView->SetHiLightInfo(pack, 0,UID_Null);
//TEMPCODE RDH 05/04/00 
//TEMPCODE RDH 05/04/00 	if (Todays_Packages[pack][0].diaryentry == -1)		//RJS 27Jan00
//TEMPCODE RDH 05/04/00 			Squad_Diary.CreateEntry(Todays_Packages,pack);	//RJS 27Jan00
//TEMPCODE RDH 05/04/00 
//TEMPCODE RDH 05/04/00 	Squad_Diary.CreatePlayer(Todays_Packages);					//RJS 27Jan00
//TEMPCODE RDH 05/04/00 	pptr = Squad_Diary.GetFirstPlayer();
//TEMPCODE RDH 05/04/00 	pptr->howendedmission = EFS_LandedOK;
//TEMPCODE RDH 05/04/00 	//###end temp

	pptr = Squad_Diary.GetFirstPlayer();


	while(pptr)	
	{
		SquadronBase*	squad =	Squad_Diary.GetSquadron(pptr);
		if (squad)
		{
			Diary::RaidGroup* raidgroup;
			Diary::RaidPack* raidpack;
			Diary::Intercept* intercept;

			intercept = Squad_Diary.GetIntercept(squad);
			raidgroup = Squad_Diary.GetRaidGroup(intercept);
			if (raidgroup)
			{
				raidpack = Squad_Diary.GetRaidPack(raidgroup);
				if (raidpack)
				{
					//date
		 			rlistbox->AddString(GetDateName(raidpack->date * SECSPERDAY, DATE_LONG),0);

					int	t;												//RJS 12Nov00
					if (intercept->intercepttime)						//RJS 12Nov00
						t = intercept->intercepttime;					//RJS 12Nov00
					else												//RJS 12Nov00
						t = intercept->takeofftime;						//RJS 12Nov00

					t /= 60;											//RJS 12Nov00

					rlistbox->AddString(CSprintf("%02i:%02i",t/60,t%60),1);

					Squadron* sq  = Node_Data[(SquadNum)squad->squadnum];
					rlistbox->AddString(RESLIST(SPIT_A, sq->AcType()),2);

					//mission
 					int cnt = int(!intercept->waspatrolinitially);
					rlistbox->AddString(RESLIST(AM_PATROL, cnt),3);

					CString	remarkstring;								//RJS 9Nov00
																		//RJS 9Nov00
					pptr->DamageReport(remarkstring);					//RJS 9Nov00
																		//RJS 9Nov00
					rlistbox->AddString(remarkstring,4);				//RJS 9Nov00


 					int kills = 0;
					for (int k = 0; k < 6; k++)
							kills += pptr->kills[k];
 					rlistbox->AddString(CSprintf("%i", kills),5);
 
 
				}
			}
 

		}
		pptr = Squad_Diary.GetNextPlayerAll(pptr);



	}


}
Esempio n. 26
0
void	Geschwader::RefreshLW()
{
	CRListBox* rlistbox;
	rlistbox=GETDLGITEM(IDC_RLISTBOXCTRL1);
	rlistbox->Clear();
	rlistbox->AddColumn(100);
	rlistbox->AddColumn(40);
	rlistbox->AddColumn(40);
	rlistbox->AddColumn(60);
	rlistbox->AddColumn(100);
	rlistbox->AddColumn(40);
	rlistbox->AddColumn(40);
	rlistbox->AddColumn(40);
	rlistbox->AddString(RESSTRING(LUFTFLOTTE2),0);
	rlistbox->AddString("I",1);
	rlistbox->AddString("II",2);
	rlistbox->AddString("III",3);
	rlistbox->AddString(RESSTRING(LUFTFLOTTE3),4);
	rlistbox->AddString("I",5);
	rlistbox->AddString("II",6);
	rlistbox->AddString("III",7);

	FindGeschwader();

	for(int flotte = 0; flotte <2;flotte++)
		for (int name = 0; name <MAX_GESCH; name++)
		
		{
			CString string;
			if(geschwaderarray[flotte][geschwadertype][name] != -1)
			{
				int wader = geschwaderarray[flotte][geschwadertype][name];
				int wadernum = 	Node_Data.geschwader[wader].wadernum;
 //CSprintf("%i",	wadernum)
				if (Node_Data.geschwader[wader].reconn)
					string =   CSprintf("%s%i<%s>",
									RESLIST(J, Node_Data.geschwader[wader].wadername),
									wadernum,
									RESLIST(SPIT_A,Node_Data.geschwader[wader].aircrafttype));
				else
					string =   CSprintf("%s%i(%s)",
									RESLIST(J, Node_Data.geschwader[wader].wadername),
									wadernum,
									RESLIST(SPIT_A,Node_Data.geschwader[wader].aircrafttype));
				rlistbox->AddString(string,flotte*4);
		
				int i = 0, numsquad = 0;
				int sq, w;
				while (Node_Data.gruppe[i].squadron != SQ_ZERO)
				{
				  sq = Node_Data.gruppe[i].squadron;
				  w =Node_Data.gruppe[i].wadernum;

				  if (Node_Data.gruppe[i].wadernum == wader)
				  {
						string = CSprintf("%i", Node_Data.gruppe[i].acavail);
						if (Node_Data.gruppe[i].periodsuntilready == Gruppen::BUSY_IN_EUROPE)
							rlistbox->AddString("",flotte*4+numsquad+1);
						else if (Node_Data.gruppe[i].periodsuntilready == 0)
					  		rlistbox->AddString(string,flotte*4+numsquad+1);
						else
					  		rlistbox->AddString(CSprintf("(%s)", string),flotte*4+numsquad+1);

						numsquad++;
				  }

				  i++;
				}


			}

		}			


}
Esempio n. 27
0
BOOL LWRouteAirfield::OnInitDialog() 
{
	CDialog::OnInitDialog();
	
	CRListBox* rlistbox;
	rlistbox=GETDLGITEM(IDC_RLISTBOXCTRL1);
	rlistbox->Clear();
	rlistbox->AddColumn(80);
	rlistbox->AddColumn(TARGETFIELDWIDTH);										  //RDH 02/06/99
	rlistbox->AddColumn(60);										  //RDH 02/06/99
	rlistbox->AddColumn(60);										  //RDH 02/06/99
	rlistbox->AddColumn(60);
	rlistbox->AddString("",0);
	rlistbox->AddString(RESSTRING(LOCATION),1);
	rlistbox->AddString(RESSTRING(ETA),2);
	rlistbox->AddString(RESSTRING(RELTOT),3);
	rlistbox->AddString(RESSTRING(FUEL),4);
	
	rlistbox->AddString("Strike",0);
	rlistbox->AddString("Wissen",1);
	rlistbox->AddString("14:00",2);
	rlistbox->AddString("-01:20",3);
	rlistbox->AddString("3000",4);

	
	return TRUE;  // return TRUE unless you set the focus to a control
	              // EXCEPTION: OCX Property Pages should return FALSE
}
Esempio n. 28
0
BOOL LWReviewStrength::OnInitDialog() 
{
	CDialog::OnInitDialog();
	
	CRListBox* rlistbox;
	rlistbox=GETDLGITEM(IDC_RLISTBOXCTRL1);
//DeadCode RDH 31Oct00 	rlistbox->AddString("",0);
	rlistbox->Clear();
	//rlistbox->AddColumn(120);
	//rlistbox->AddColumn(42);										  //RDH 02/06/99
	//rlistbox->AddColumn(42);
	//rlistbox->AddColumn(42);
	//rlistbox->AddColumn(42);										  //RDH 02/06/99
	//rlistbox->AddColumn(42);
	//rlistbox->AddColumn(42);
	//rlistbox->AddColumn(42);										  //RDH 02/06/99
	rlistbox->AddString("",0);
	rlistbox->AddString(RESSTRING(L_ME109),1);
	rlistbox->AddString(RESSTRING(ME110),2);
	rlistbox->AddString(RESSTRING(JU87),3);
	rlistbox->AddString(RESSTRING(L_DO17),4);
	rlistbox->AddString(RESSTRING(JU88),5);
	rlistbox->AddString(RESSTRING(HE111),6);
	rlistbox->AddString(RESSTRING(TOTAL),7);

	
	rlistbox->AddString(RESSTRING(GRUPPEN),0);
	rlistbox->AddString("   "+ RESSTRING(L_CATA),0);
	rlistbox->AddString("   "+ RESSTRING(CATB),0);
	rlistbox->AddString("   "+ RESSTRING(CATC),0);
	rlistbox->AddString(RESSTRING(AIRCRAFT),0);
	rlistbox->AddString("   "+ RESSTRING(COMBATREADY),0);
	rlistbox->AddString("   "+ RESSTRING(FULLCOMPLEMENT),0);

	Node_Data.FillLWStrengthInfo();

 	for (int i = 0; i <Node_Data.LWMAXTYPES; i++)
 	{
 		rlistbox->AddString("",1+i);
 
 		rlistbox->AddString(CSprintf("%i",Node_Data.LWstrengthinfo[i].catA),1+i);
 		rlistbox->AddString(CSprintf("%i",Node_Data.LWstrengthinfo[i].catB),1+i);
 		rlistbox->AddString(CSprintf("%i",Node_Data.LWstrengthinfo[i].catC),1+i);
 
 		rlistbox->AddString("",1+i);
 
 		rlistbox->AddString(CSprintf("%i",Node_Data.LWstrengthinfo[i].acready),1+i);
 		rlistbox->AddString(CSprintf("%i",Node_Data.LWstrengthinfo[i].actotal),1+i);
 	}


//DEADCODE  17/02/00 	rlistbox->AddString("",1);
//DEADCODE  17/02/00 	rlistbox->AddString("10",1);
//DEADCODE  17/02/00 	rlistbox->AddString("4",1);
//DEADCODE  17/02/00 	rlistbox->AddString("3",1);
//DEADCODE  17/02/00 	rlistbox->AddString("",1);
//DEADCODE  17/02/00 	rlistbox->AddString("80",1);
//DEADCODE  17/02/00 	rlistbox->AddString("120",1);
//DEADCODE  17/02/00 
//DEADCODE  17/02/00 	rlistbox->AddString("",2);
//DEADCODE  17/02/00 	rlistbox->AddString("10",2);
//DEADCODE  17/02/00 	rlistbox->AddString("4",2);
//DEADCODE  17/02/00 	rlistbox->AddString("3",2);
//DEADCODE  17/02/00 	rlistbox->AddString("",2);
//DEADCODE  17/02/00 	rlistbox->AddString("80",2);
//DEADCODE  17/02/00 	rlistbox->AddString("120",2);
//DEADCODE  17/02/00 
//DEADCODE  17/02/00 	rlistbox->AddString("",3);
//DEADCODE  17/02/00 	rlistbox->AddString("10",3);
//DEADCODE  17/02/00 	rlistbox->AddString("4",3);
//DEADCODE  17/02/00 	rlistbox->AddString("3",3);
//DEADCODE  17/02/00 	rlistbox->AddString("",3);
//DEADCODE  17/02/00 	rlistbox->AddString("80",3);
//DEADCODE  17/02/00 	rlistbox->AddString("120",3);


//DeadCode RDH 22Jun00 	 	CRStatic*   s;
//DeadCode RDH 22Jun00    	
//DeadCode RDH 22Jun00 	s=GETDLGITEM(IDC_RSTATIC_COMMENT);
//DeadCode RDH 22Jun00 	s->SetString("The number of Category A squadrons is very low. Any further dilution will mean that the Luftwaffe is no longer a credible fighting force");
//DeadCode RDH 22Jun00 
//DeadCode RDH 22Jun00 
	
	return TRUE;  // return TRUE unless you set the focus to a control
	              // EXCEPTION: OCX Property Pages should return FALSE
}
Esempio n. 29
0
void PilotLogBook::LWRefreshList()
{
	
	CRListBox* rlistbox;
	rlistbox=GETDLGITEM(IDC_RLISTBOXCTRL1);
//DeadCode RDH 31Oct00 	rlistbox->AddString("",0);
	rlistbox->Clear();
	//rlistbox->AddColumn(70);
	//rlistbox->AddColumn(60);										  //RDH 02/06/99
	//rlistbox->AddColumn(80);										  //RDH 02/06/99
	//rlistbox->AddColumn(90);										  //RDH 02/06/99
	//rlistbox->AddColumn(280);
	//rlistbox->AddColumn(45);										  //RDH 02/06/99
//DeadCode JIM 18Oct00 	rlistbox->AddColumn(30);										  //RDH 02/06/99
	rlistbox->AddString(RESSTRING(DATE),0);
	rlistbox->AddString(RESSTRING(HOUR),1);
	rlistbox->AddString(RESSTRING(ACTYPE),2);
	rlistbox->AddString(RESSTRING(DUTY),3);
	rlistbox->AddString(RESSTRING(REMARKS),4);
	rlistbox->AddString(RESSTRING(CLAIMS),5);
//DeadCode JIM 18Oct00 	rlistbox->AddString(RESSTRING(FLYINGHOURS),6);

	Diary::Player*	pptr;


//TEMPCODE RDH 05/04/00 	//###temp
//TEMPCODE RDH 05/04/00 	int pack=0;
//TEMPCODE RDH 05/04/00 	while (	pack < Profile::MAX_PACKS)
//TEMPCODE RDH 05/04/00 	{
//TEMPCODE RDH 05/04/00 		if (Todays_Packages.pack[pack].packagestatus!=Profile::PS_SPARE)
//TEMPCODE RDH 05/04/00 		{
//TEMPCODE RDH 05/04/00 		 	Profile& pk = Todays_Packages.pack[pack];
//TEMPCODE RDH 05/04/00 			if  (pk.attackmethod >= Profile::AM_LWPACKS)
//TEMPCODE RDH 05/04/00 				break;
//TEMPCODE RDH 05/04/00 		}
//TEMPCODE RDH 05/04/00 		pack++;
//TEMPCODE RDH 05/04/00 	}
//TEMPCODE RDH 05/04/00 	RDialog::m_pView->SetHiLightInfo(pack, 0,UID_Null);
//TEMPCODE RDH 05/04/00 
//TEMPCODE RDH 05/04/00 	if (Todays_Packages[pack][0].diaryentry == -1)		//RJS 27Jan00
//TEMPCODE RDH 05/04/00 			Squad_Diary.CreateEntry(Todays_Packages,pack);	//RJS 27Jan00
//TEMPCODE RDH 05/04/00 
//TEMPCODE RDH 05/04/00 	Squad_Diary.CreatePlayer(Todays_Packages);					//RJS 27Jan00
//TEMPCODE RDH 05/04/00 	pptr = Squad_Diary.GetFirstPlayer();
//TEMPCODE RDH 05/04/00 	pptr->howendedmission = EFS_LandedOK;
//TEMPCODE RDH 05/04/00 	//###end temp

	pptr = Squad_Diary.GetFirstPlayer();


	while(pptr)	
	{
		SquadronBase*	squad =	Squad_Diary.GetSquadron(pptr);
		if (squad)
		{
			Diary::RaidGroup* raidgroup;
			Diary::RaidPack* raidpack;
			raidgroup = Squad_Diary.GetRaidGroup(squad);
			if (raidgroup)
			{
				raidpack = Squad_Diary.GetRaidPack(raidgroup);
				if (raidpack)
				{
					//date
		 			rlistbox->AddString(GetDateName(raidpack->date * SECSPERDAY, DATE_LONG),0);
					int t=raidgroup->targettime/60;
 					rlistbox->AddString(CSprintf("%02i:%02i",t/60,t%60),1);

					Squadron* sq  = Node_Data[(SquadNum)squad->squadnum];
					rlistbox->AddString(RESLIST(SPIT_A, sq->AcType()),2);

					rlistbox->AddString(RESLIST(MT_RAID, raidgroup->misstype),3);

					CString	remarkstring;								//RJS 9Nov00
																		//RJS 9Nov00
					pptr->DamageReport(remarkstring);					//RJS 9Nov00
																		//RJS 9Nov00
					rlistbox->AddString(remarkstring,4);				//RJS 9Nov00

//DeadCode RJS 9Nov00 					bool acdamage = false;
//DeadCode RJS 9Nov00 					int maxdam = 0, maxdamtype;
//DeadCode RJS 9Nov00 					for(int i = 0; i < DIARY_MAXDAMAGE; i++)
//DeadCode RJS 9Nov00 						if (pptr->specificdamage[i] >50)
//DeadCode RJS 9Nov00 						{
//DeadCode RJS 9Nov00 							acdamage = true;
//DeadCode RJS 9Nov00 							if (pptr->specificdamage[i] > maxdam)
//DeadCode RJS 9Nov00 							{
//DeadCode RJS 9Nov00 								maxdam = pptr->specificdamage[i];
//DeadCode RJS 9Nov00 								maxdamtype = i;
//DeadCode RJS 9Nov00 							}
//DeadCode RJS 9Nov00 						}
//DeadCode RJS 9Nov00 
//DeadCode RJS 9Nov00 					if (	acdamage									//RJS 9Nov00
//DeadCode RJS 9Nov00 						&&	(pptr->howendedmission < EFS_BadCrashAF)	)	//RJS 9Nov00
//DeadCode RJS 9Nov00 					{
//DeadCode RJS 9Nov00 						if (maxdam < 200)
//DeadCode RJS 9Nov00 							rlistbox->AddString(RESLIST(DIARYDAM_LEFTWING, maxdamtype),4);	//RJS 9Nov00
//DeadCode RJS 9Nov00 						else
//DeadCode RJS 9Nov00 							rlistbox->AddString(RESLIST(DIARYDEST_LEFTWING, maxdamtype),4);	//RJS 9Nov00
//DeadCode RJS 9Nov00 
//DeadCode RJS 9Nov00 					}else
//DeadCode RJS 9Nov00 						rlistbox->AddString(RESLIST(EFS_NULL, pptr->howendedmission),4);


					int kills = pptr->kills[0] + pptr->kills[1];
 					rlistbox->AddString(CSprintf("%i", kills),5);
 
 
				}
			}
 

		}
		pptr = Squad_Diary.GetNextPlayerAll(pptr);



	}

}
Esempio n. 30
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);


}