Click here to Skip to main content
15,916,842 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRemote Debugging and Breakpoints... Pin
Alberto Bar-Noy9-Mar-03 5:00
Alberto Bar-Noy9-Mar-03 5:00 
QuestionHow to handle Text Objects in a PaintShop Pro or PhotoShop type app? Pin
cdsmith9-Mar-03 4:57
cdsmith9-Mar-03 4:57 
I am trying to use text in a PaintShop Pro or PhotoShop type application. Does any body have any ideas on how to do this. I am specifically interested in ideas about how you let the user manipulate the text object. For example the user can stretch the text object in either direction, or rotate the text or...

I have started working on 2 solutions. The first is when I create a text object given a font name, font size, color and attributes (bold, italic...) I put it into a rich text control and grab the bitmap that is generated by the rich text control. Then stretching or rotating the text is basically stretchBlting or rotating a bitmap. This works well but looses quality (especially when printing).

The sceond solution is when I create a text object given a font name, font size, color and attributes (bold, italic...) I create a logical font, using the LOGFONT structure. This gives rotation by creating the font rotated. It also gives great quality when printing. But this causes problems with stretching. I have not gotten this approach to stretch into long or heigh text.

OK, does anybody have any recomemdations about these approaches? Or another approach?

Thanks for any advice!

Craig Smith

Question.dsp and .dsw format ? Pin
CHARMAN9-Mar-03 4:21
CHARMAN9-Mar-03 4:21 
AnswerRe: .dsp and .dsw format ? Pin
Garth J Lancaster9-Mar-03 11:02
professionalGarth J Lancaster9-Mar-03 11:02 
GeneralRe: .dsp and .dsw format ? Pin
Garth J Lancaster9-Mar-03 11:05
professionalGarth J Lancaster9-Mar-03 11:05 
GeneralRe: .dsp and .dsw format ? Pin
Chris Richardson9-Mar-03 16:49
Chris Richardson9-Mar-03 16:49 
QuestionHow to embed MS Word into my app? Pin
blongtq9-Mar-03 4:02
blongtq9-Mar-03 4:02 
QuestionHow to put a Char into the Input buffer of a console? Pin
Aidman9-Mar-03 3:34
Aidman9-Mar-03 3:34 
GeneralQuestion about Ms DataGrid Pin
ilavl9-Mar-03 3:00
ilavl9-Mar-03 3:00 
GeneralC++ & LDAP question Pin
Anonymous9-Mar-03 2:25
Anonymous9-Mar-03 2:25 
GeneralMemory from heap Pin
John-theKing9-Mar-03 0:32
John-theKing9-Mar-03 0:32 
GeneralRe: Memory from heap Pin
Christian Graus9-Mar-03 0:55
protectorChristian Graus9-Mar-03 0:55 
GeneralRe: Memory from heap Pin
Hesham Amin9-Mar-03 3:27
Hesham Amin9-Mar-03 3:27 
GeneralRe: Memory from heap Pin
Christian Graus9-Mar-03 10:16
protectorChristian Graus9-Mar-03 10:16 
GeneralMenu Pin
Dat Nguyen8-Mar-03 17:01
Dat Nguyen8-Mar-03 17:01 
GeneralRe: Menu Pin
Abbas_Riazi8-Mar-03 17:57
professionalAbbas_Riazi8-Mar-03 17:57 
QuestionHow to print Right aligned Text in a console? Pin
Aidman8-Mar-03 16:06
Aidman8-Mar-03 16:06 
AnswerRe: How to print Right aligned Text in a console? Pin
Alvaro Mendez8-Mar-03 16:47
Alvaro Mendez8-Mar-03 16:47 
GeneralRe: How to print Right aligned Text in a console? Pin
Aidman9-Mar-03 1:05
Aidman9-Mar-03 1:05 
GeneralClarifying Terminology for "XP Job Control" Pin
Dana Epp8-Mar-03 14:28
Dana Epp8-Mar-03 14:28 
GeneralShortcut keys Pin
Dor8-Mar-03 13:57
Dor8-Mar-03 13:57 
GeneralRe: Shortcut keys Pin
Nish Nishant8-Mar-03 14:11
sitebuilderNish Nishant8-Mar-03 14:11 
Generalfast line drawing Pin
TV8-Mar-03 13:48
TV8-Mar-03 13:48 
GeneralRe: fast line drawing Pin
Anders Molin8-Mar-03 14:11
professionalAnders Molin8-Mar-03 14:11 
GeneralRe: fast line drawing Pin
TV8-Mar-03 14:15
TV8-Mar-03 14:15 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.