| 266 | } |
| 267 | |
| 268 | void CSampleEditorView::DrawPlayCursor(int Pos) |
| 269 | { |
| 270 | CDC *pDC = GetDC(); |
| 271 | int x = int((double(Pos + m_iStartCursor) * 8.0 * 64.0 - m_iViewStart) / m_dSampleStep); |
| 272 | |
| 273 | pDC->BitBlt(0, 0, m_clientRect.Width(), m_clientRect.Height(), &m_dcCopy, 0, 0, SRCCOPY); |
| 274 | |
| 275 | if (Pos != -1) { |
| 276 | CPen *oldPen = pDC->SelectObject(&m_cDashedPen); |
| 277 | pDC->MoveTo(x, 0); |
| 278 | pDC->LineTo(x, m_clientRect.bottom); |
| 279 | pDC->SelectObject(oldPen); |
| 280 | } |
| 281 | |
| 282 | ReleaseDC(pDC); |
| 283 | } |
| 284 | |
| 285 | void CSampleEditorView::DrawStartCursor() |
| 286 | { |