| 198 | } |
| 199 | |
| 200 | void CVisualizerWnd::OnPaint() |
| 201 | { |
| 202 | LockedState([&] { |
| 203 | CPaintDC dc(this); // device context for painting |
| 204 | |
| 205 | if (m_bNoAudio) { |
| 206 | CRect rect; |
| 207 | GetClientRect(rect); |
| 208 | dc.DrawTextW(L"No audio", rect, DT_CENTER | DT_VCENTER); |
| 209 | } |
| 210 | else |
| 211 | m_pStates[m_iCurrentState]->Display(&dc, true); |
| 212 | }); |
| 213 | } |
| 214 | |
| 215 | void CVisualizerWnd::OnRButtonUp(UINT nFlags, CPoint point) |
| 216 | { |