Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how text can be print in spiral using MFC view class OnDraw();function

Status
Not open for further replies.

knownarcher

Programmer
Jul 11, 2003
5
US
Hi there.........
how is that possible to print the text in the view window using view class .is there any special function that describe the text ,
 
I don't know of any built in function to do what you are saying! Others in this forum may be know of some.

However, you can implement what you are describing manually. Over-ride Window's WM_PAINT message and draw the view yourself.

You will need to mathematically describe the path for letters to be written. The equations should give you the x and y position for each letter in the string.

Then use the TextOut function to place each letter in the string at the correct position.

Hope this helps.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top