Click here to Skip to main content
15,884,176 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralChange View in SDI-Application Pin
AnTri16-Jan-08 9:04
AnTri16-Jan-08 9:04 
GeneralRe: Change View in SDI-Application Pin
Mark Salsbery16-Jan-08 9:39
Mark Salsbery16-Jan-08 9:39 
GeneralRe: Change View in SDI-Application Pin
AnTri16-Jan-08 9:49
AnTri16-Jan-08 9:49 
GeneralUsing extendes MFC-Dll for my control Pin
AnTri16-Jan-08 8:36
AnTri16-Jan-08 8:36 
GeneralRe: Using extendes MFC-Dll for my control Pin
Mark Salsbery16-Jan-08 8:50
Mark Salsbery16-Jan-08 8:50 
GeneralRe: Using extendes MFC-Dll for my control Pin
AnTri16-Jan-08 9:49
AnTri16-Jan-08 9:49 
GeneralRe: Using extendes MFC-Dll for my control Pin
Iain Clarke, Warrior Programmer17-Jan-08 2:14
Iain Clarke, Warrior Programmer17-Jan-08 2:14 
QuestionFormatting text onto a DC Pin
Santanu Lahiri16-Jan-08 8:05
Santanu Lahiri16-Jan-08 8:05 
This should be a simple problem, but I am unable to solve it! My environment is VStudio 2005 and MFC.

The issue is printing text onto a DC. Should be simple enough, but here are some constraints:
1. The text may be rotated 0, 90, 180, 270 degrees.
2. The text may need reformatted within the bounding rectangle, meaning word-breaks.
3. The text will need to be aligned horizantally and vertically within the bounding rectangle - left, right, and center horizontally, top, center, bottom vertically.

Rotating text is not a problem.

Normally, I could use DrawText to print the text, but on rotated fonts, DrawText seems to choke. I tried TextOut and ExtTextOut. These rotate and position just fine, but can't seem to do word-wrap.

Is there an API call or setup that I am missing? Or do I need to draw to a memory DC and somehow rotate it to fit?

Or can someone please point me to some code that will accomplish this easily?

Thank you for your time
GeneralRe: Formatting text onto a DC Pin
James R. Twine16-Jan-08 8:11
James R. Twine16-Jan-08 8:11 
GeneralRe: Formatting text onto a DC Pin
Santanu Lahiri16-Jan-08 9:06
Santanu Lahiri16-Jan-08 9:06 
GeneralRe: Formatting text onto a DC Pin
Santanu Lahiri16-Jan-08 15:52
Santanu Lahiri16-Jan-08 15:52 
GeneralRe: Formatting text onto a DC Pin
Santanu Lahiri18-Jan-08 4:31
Santanu Lahiri18-Jan-08 4:31 
QuestionHow do you reverse the action on a Spin control Pin
littleGreenDude16-Jan-08 4:04
littleGreenDude16-Jan-08 4:04 
GeneralRe: How do you reverse the action on a Spin control Pin
led mike16-Jan-08 4:47
led mike16-Jan-08 4:47 
GeneralRe: How do you reverse the action on a Spin control Pin
littleGreenDude16-Jan-08 5:53
littleGreenDude16-Jan-08 5:53 
GeneralRe: How do you reverse the action on a Spin control Pin
toxcct16-Jan-08 5:55
toxcct16-Jan-08 5:55 
GeneralRe: How do you reverse the action on a Spin control Pin
littleGreenDude16-Jan-08 6:07
littleGreenDude16-Jan-08 6:07 
GeneralRe: How do you reverse the action on a Spin control Pin
led mike16-Jan-08 6:07
led mike16-Jan-08 6:07 
GeneralRe: How do you reverse the action on a Spin control Pin
toxcct16-Jan-08 6:21
toxcct16-Jan-08 6:21 
GeneralRe: How do you reverse the action on a Spin control Pin
Mark Salsbery16-Jan-08 7:08
Mark Salsbery16-Jan-08 7:08 
GeneralConverting a dynamic Stl String Array in a BSTR ! Pin
CrocodileBuck16-Jan-08 3:39
CrocodileBuck16-Jan-08 3:39 
GeneralRe: Converting a dynamic Stl String Array in a BSTR ! Pin
led mike16-Jan-08 5:04
led mike16-Jan-08 5:04 
GeneralRe: Converting a dynamic Stl String Array in a BSTR ! Pin
CrocodileBuck16-Jan-08 5:58
CrocodileBuck16-Jan-08 5:58 
AnswerRe: Converting a dynamic Stl String Array in a BSTR ! Pin
Nathan Holt at EMOM16-Jan-08 6:13
Nathan Holt at EMOM16-Jan-08 6:13 
GeneralRe: Converting a dynamic Stl String Array in a BSTR ! Pin
CrocodileBuck17-Jan-08 4:08
CrocodileBuck17-Jan-08 4:08 

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.