| 50 | } |
| 51 | |
| 52 | int GetTextOffset(HDC hdc, const std::string& s, int xPos) |
| 53 | { |
| 54 | auto exp = TabsToSpaces(s); |
| 55 | int nFit; |
| 56 | SIZE size; |
| 57 | if (!GetTextExtentExPointA(hdc, exp.c_str(), exp.size(), xPos, &nFit, nullptr, &size)) |
| 58 | return 0; |
| 59 | return SkipTabOffset(s, nFit); |
| 60 | } |
| 61 | |
| 62 | int GetTextOffset(HDC hdc, const std::wstring& s, int xPos) |
| 63 | { |
no test coverage detected