added marking of active/inactive tracks

This commit is contained in:
Erik Faye-Lund 2008-02-13 13:07:56 +00:00
parent ea1c22241a
commit 366f34ba9d
3 changed files with 25 additions and 20 deletions

View File

@ -394,6 +394,8 @@ int _tmain(int argc, _TCHAR* argv[])
closesocket(clientSocket);
clientSocket = INVALID_SOCKET;
syncData.clientSocket = INVALID_SOCKET;
syncData.clientRemap.clear();
InvalidateRect(trackViewWin, NULL, FALSE);
break;
}
else

View File

@ -134,6 +134,9 @@ void TrackView::paintTopMargin(HDC hdc, RECT rcTracks)
FillRect(hdc, &fillRect, bgBrush);
const std::basic_string<TCHAR> &trackName = trackIter->first;
if (this->syncData->clientRemap.count(track) == 0) SetTextColor(hdc, GetSysColor(COLOR_GRAYTEXT));
else SetTextColor(hdc, GetSysColor(COLOR_WINDOWTEXT));
TextOut(hdc,
fillRect.left, 0,
trackName.data(), int(trackName.length())