| 114 | } |
| 115 | |
| 116 | int CGraphBase::GetItemGridIndex(CPoint point) const { // // // |
| 117 | int ItemWidth = GetItemWidth(); |
| 118 | int idx = point.x - CGraphEditor::GRAPH_LEFT + ItemWidth / 2; |
| 119 | return idx >= 0 ? idx / ItemWidth : -1; |
| 120 | } |
| 121 | |
| 122 | void CGraphBase::DrawRect(CDC &dc, int x, int y, int w, int h) { |
| 123 | DrawRect<GREY(240), GREY(208), WHITE, GREY(160)>(dc, x, y, w, h, false); |
no outgoing calls
no test coverage detected