I have problem with text drawing around Circle.
I found great sample in C# http://www.codeproject.com/Articles/30090/Text-On-A-Path-in-WPF
Bu I need to implement this in VC 6.0 and C# sample isn’t working for me for that reason.
Maybe exist some basic algorithm to implement this?
All drawings must be drawn in CDC.
CDC is a thin wrapper around GDI. GDI doesn’t provide much support for what you want to do, so it will be a lot of work. Here are a couple of approaches:
Draw the text normally (in a straight line) to an off-screen DIB section, and then do a pixelwise transformation to make another off-screen DIB section with the text in a circle. Then you can blit the transformed DIB section to the output device.
For each character, create a logical font with the escapement and orientation set to the appropriate angle for the current position, then draw the character with that font. Repeat for each character. The problem here is that, even with TrueType or OpenType fonts, the rotations aren’t always very good, depending on the quality of the font, hinting, etc.
Use a TrueType or OpenType font and get GDI to give you the vectors (line segments and bezier curves) that define the actual character shapes. Assemble these into a straight row, and then apply a Cartesian to polar coordinate transform. Draw the result using one of the path functions.