Quote:
Originally Posted by Devsome
Have you tried adding new tabs?
What were your attempts, show us your code.
|
i added but not support click events.
and i made only this code
bool CIFRanks::OnCreate(long ln)
{
BS_DEBUG("> " __FUNCTION__ "(%d)", ln);
// Populate inherited members
CIFMainFrame::OnCreate(ln);
SetText(L"Ranking");
m_IRM.LoadFromFile("resinfo\\ifrank.txt");
m_IRM.CreateInterfaceSection("Create", this);
m_pTabs = new CIFSelectableArea *[numberOfTabs];
for (int i = 0; i < numberOfTabs; i++) {
m_numberOfLinesPerTab[i] = 1;
RECT mrect;
mrect.top = 5;
mrect.left = 0;
mrect.right = 0;
mrect.bottom = 4;
RECT selectable_area_size;
selectable_area_size.top = 45;
selectable_area_size.left = tabMarginLeft + tabWidth * i;
selectable_area_size.right = tabWidth + 1;
selectable_area_size.bottom = tabHeight;
m_pTabs[i] = (CIFSelectableArea *) CGWnd::CreateInstance(this, GFX_RUNTIME_CLASS(CIFSelectableArea),
selectable_area_size, tabFirstId + i, 0);
m_pTabs[i]->SetSomeRect(mrect);
m_pTabs[i]->SetFont(this->N00009C2F);
m_pTabs[i]->sub_64CE30("interface\\ifcommon\\com_long_tab_on. ddj",
"interface\\ifcommon\\com_long_tab_off.ddj", "");
if (i) {
switch (i) {
case 1:
m_pTabs[1]->SetText(L"Job");
break;
case 2:
m_pTabs[2]->SetText(L"Honor");
break;
case 3:
m_pTabs[3]->SetText(L"Empty");
break;
case 4:
m_pTabs[4]->SetText(L"Empty");
break;
case 5:
m_pTabs[5]->SetText(L"Empty");
break;
}
m_pTabs[i]->sub_64CC30(0);
} else {
m_pTabs[0]->SetText(L"Unique");
m_pTabs[i]->sub_64CC30(1);
}
}
this->ShowGWnd(false);
return true;
}