Official eMule-Board: Glitch In Downloadclientsctrl.cpp - Official eMule-Board

Jump to content


Page 1 of 1

Glitch In Downloadclientsctrl.cpp Confusing users...

#1 User is offline   tHeWiZaRdOfDoS 

  • Man, what a bunch of jokers...
  • PipPipPipPipPipPipPip
  • Group: Members
  • Posts: 5630
  • Joined: 28-December 02

Post icon  Posted 21 February 2006 - 10:32 AM

The DownloadClientsCtrl seems to be copied from UploadListCtrl as there is this unneeded part left:

Quote

void CDownloadClientsCtrl::DrawItem(LPDRAWITEMSTRUCT lpDrawItemStruct)
{
if (!theApp.emuledlg->IsRunning())
  return;
if (!lpDrawItemStruct->itemData)
  return;
CDC* odc = CDC::FromHandle(lpDrawItemStruct->hDC);
BOOL bCtrlFocused = ((GetFocus() == this) || (GetStyle() & LVS_SHOWSELALWAYS));
if (lpDrawItemStruct->itemState & ODS_SELECTED) {
  if (bCtrlFocused)
  odc->SetBkColor(m_crHighlight);
  else
  odc->SetBkColor(m_crNoHighlight);
}
else
  odc->SetBkColor(GetBkColor());
const CUpDownClient* client = (CUpDownClient*)lpDrawItemStruct->itemData;
CMemDC dc(odc, &lpDrawItemStruct->rcItem);
CFont* pOldFont = dc.SelectObject(GetFont());
CRect cur_rec(lpDrawItemStruct->rcItem);
COLORREF crOldTextColor = dc.SetTextColor((lpDrawItemStruct->itemState & ODS_SELECTED) ? m_crHighlightText : m_crWindowText);
    if(client->GetSlotNumber() > theApp.uploadqueue->GetActiveUploadsCount()) {
        dc.SetTextColor(::GetSysColor(COLOR_GRAYTEXT));
    }

It should be removed because this often confuses users... especially because it's not reset when an upload ends, so if a client leaves the upload at a higher slotnumber and then uploads to us then he will be greyed out :lol:
0

  • Member Options

Page 1 of 1

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users