yeh, I add lpk latr.
Main work is not porting, main work you cannot do anyway:
- replace GetTextExtentPoint api with new api (from my new app) which calculates offset of all chars (usual chars- width 1.0, CJK chars- width 1.7)
- Also I replaced WM_vscroll/WM_hscroll with LM_vscroll/LM_hscroll to work with Qt.
- Also redone InvertRect (by painting with Pen.Mode:= pmXor).