winapi - How to draw a selected text in win32 using only gdi call? -
I tried to draw a selected text using two textot calls and the TA_UPDATECP flag but when I moved to the selected area I do, so the characters are moving forward a bit.
Does anyone know the right way to do this? According to the MSDN documentation, when you have set the TA_UPDATCP flag according to the reference of the device
In favor of the current situation, its status parameters are ignored. Without looking at your code, I suspect that your drawing algorithm calls text (with current status) a bit different depending on the selection.
As a debugging strategy, you can call before texting (), get the current position and make sure that it is in line with your expectations where the text should be drawn.
Comments
Post a Comment