| 198 | } |
| 199 | |
| 200 | void CGraphBase::DrawRange(CDC &dc, int Max, int Min) { |
| 201 | CFont *pOldFont = dc.SelectObject(&font_); // // // |
| 202 | const int Top = GetItemTop(); // // // |
| 203 | const int Bottom = GetItemBottom(); |
| 204 | |
| 205 | dc.FillSolidRect(region_.left - DPI::SX(CGraphEditor::GRAPH_LEFT), Top, region_.left, Bottom, BLACK); |
| 206 | |
| 207 | dc.SetBkMode(TRANSPARENT); |
| 208 | dc.SetTextColor(WHITE); |
| 209 | dc.SetTextAlign(TA_RIGHT); |
| 210 | |
| 211 | dc.TextOutW(region_.left - 4, Top - 3, FormattedW(L"%02i", Max)); |
| 212 | dc.TextOutW(region_.left - 4, Bottom - 10, FormattedW(L"%02i", Min)); |
| 213 | |
| 214 | dc.SelectObject(pOldFont); |
| 215 | } |
| 216 | |
| 217 | void CGraphBase::DoOnMouseHover(CPoint point) { |
| 218 | const int ItemIndex = GetItemIndex(point); |
nothing calls this directly
no test coverage detected