added marking of active/inactive tracks
This commit is contained in:
parent
ea1c22241a
commit
366f34ba9d
@ -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
|
||||
|
||||
@ -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())
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user