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++; } }
BOOL CCurrEmblem::OnInitDialog() { CDialog::OnInitDialog(); CRButton* rbutton; rbutton=GETDLGITEM(IDC_NOSEART0); CRStatic* s = GETDLGITEM(IDC_RSTATICCTRL24); if (DPlay::H2H_Player[_DPlay.mySlot].squadron < PT_GER_FLYABLE) { rbutton->ShowWindow(SW_SHOW); s->ShowWindow(SW_SHOW); //DEADCODE AMM 17/01/00 int decal = DPlay::H2H_Player[_DPlay.mySlot].decal; int decal=0; assert (decal>=0 && decal<32) if (decal < 16) decal = decal + FIL_NOSE_STD_1; else decal = decal - 16 + FIL_NOSE_USER_1; rbutton->SetNormalFileNum(decal); rbutton->SetPressedFileNum(decal); }else