| 88 | } |
| 89 | |
| 90 | void CAGVideoTestWnd::SetCurVol(int nCurVol) |
| 91 | { |
| 92 | if (nCurVol < 0 || nCurVol > m_nVolRange) |
| 93 | nCurVol = 0; |
| 94 | CRect rcClient; |
| 95 | GetClientRect(&rcClient); |
| 96 | m_nCurVol = nCurVol; |
| 97 | RECT lrc; |
| 98 | lrc.left = 0; |
| 99 | lrc.right = m_nVolbarWidth; |
| 100 | lrc.top = 0; |
| 101 | lrc.bottom = rcClient.Height(); |
| 102 | InvalidateRect(&lrc); |
| 103 | RECT rrc; |
| 104 | rrc.left = rcClient.Width() - m_nVolbarWidth; |
| 105 | rrc.right = rcClient.Width(); |
| 106 | rrc.top = 0; |
| 107 | rrc.bottom = rcClient.Height(); |
| 108 | InvalidateRect(&rrc); |
| 109 | } |
| 110 | |
| 111 | |
| 112 | void CAGVideoTestWnd::OnSize(UINT nType, int cx, int cy) |
no outgoing calls
no test coverage detected