void CListBoxRenderer::AddLayer(CTextureFrag* backLayer, CTextureFrag *selLayer) { CListBox *listbox = static_cast<CListBox *>(m_pWindow); CBaseRenderer::AddLayer(backLayer); CWindow *subSel = listbox->GetSubSelWin(); CBaseRenderer* subrender = subSel->Renderer(); subrender->AddLayer(selLayer); }
void CListBoxRenderer::AddLayer(const TString &backTextName, const TString &selTextName) { CListBox *listbox = static_cast<CListBox *>(m_pWindow); CBaseRenderer::AddLayer(backTextName); CWindow *subSel = listbox->GetSubSelWin(); CBaseRenderer* subrender = subSel->Renderer(); subrender->AddLayer(selTextName); }