Click here to Skip to main content
15,898,939 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralButton in XP-Style. Pin
mostafa_pasha24-Mar-05 10:01
mostafa_pasha24-Mar-05 10:01 
GeneralResizing an Image Pin
geoffism24-Mar-05 8:51
geoffism24-Mar-05 8:51 
GeneralAdd extra button to window Title Bar Pin
Greg Rodgers24-Mar-05 7:32
Greg Rodgers24-Mar-05 7:32 
GeneralRe: Add extra button to window Title Bar Pin
Ravi Bhavnani24-Mar-05 8:29
professionalRavi Bhavnani24-Mar-05 8:29 
GeneralRe: Add extra button to window Title Bar Pin
David Crow24-Mar-05 8:42
David Crow24-Mar-05 8:42 
GeneralRe: Add extra button to window Title Bar Pin
Greg Rodgers24-Mar-05 9:09
Greg Rodgers24-Mar-05 9:09 
GeneralJustification of the Text Pin
NadirMaroof24-Mar-05 7:07
NadirMaroof24-Mar-05 7:07 
GeneralRe: Justification of the Text Pin
karle24-Mar-05 7:53
karle24-Mar-05 7:53 
I think DrawText and Textout can't justify text.

You can use a RTFControl (Has to be Version 2.0 or higher)

* create an invisible RTF Control (be sure to use RTF2.0 or higher)
* Set Text with SetWindowText
* SelAll
* SetParaFormat with paraformat2.wAlignment to PFA_JUSTIFY
* set target device EM_SETTARGETDEVICE
* set wrapmode
* use EM_FORMATRANGE to draw content to a dc

have a lot of fun

Ralf


GeneralRe: Justification of the Text Pin
NadirMaroof24-Mar-05 9:06
NadirMaroof24-Mar-05 9:06 
GeneralRe: Justification of the Text Pin
karle24-Mar-05 21:16
karle24-Mar-05 21:16 
GeneralRe: Justification of the Text Pin
NadirMaroof24-Mar-05 18:21
NadirMaroof24-Mar-05 18:21 
GeneralPlease help me! Pin
dSolariuM24-Mar-05 6:47
dSolariuM24-Mar-05 6:47 
GeneralRe: Please help me! Pin
jerry1211a24-Mar-05 10:24
jerry1211a24-Mar-05 10:24 
General(79) : error C2059: syntax error : ')' Pin
TMaxwell8624-Mar-05 6:42
TMaxwell8624-Mar-05 6:42 
GeneralRe: (79) : error C2059: syntax error : ')' Pin
ddmcr24-Mar-05 7:11
ddmcr24-Mar-05 7:11 
GeneralRe: (79) : error C2059: syntax error : ')' Pin
TMaxwell8624-Mar-05 7:26
TMaxwell8624-Mar-05 7:26 
GeneralRe: (79) : error C2059: syntax error : ')' Pin
NadirMaroof24-Mar-05 7:27
NadirMaroof24-Mar-05 7:27 
GeneralRe: (79) : error C2059: syntax error : ')' Pin
NadirMaroof24-Mar-05 8:54
NadirMaroof24-Mar-05 8:54 
GeneralRe: (79) : error C2059: syntax error : ')' Pin
Michael Dunn24-Mar-05 13:30
sitebuilderMichael Dunn24-Mar-05 13:30 
GeneralMFC CString::Delete() don't work properly Pin
toxcct24-Mar-05 6:16
toxcct24-Mar-05 6:16 
GeneralRe: MFC CString::Delete() don't work properly Pin
David Crow24-Mar-05 8:51
David Crow24-Mar-05 8:51 
GeneralRe: MFC CString::Delete() don't work properly Pin
toxcct24-Mar-05 20:46
toxcct24-Mar-05 20:46 
GeneralRe: MFC CString::Delete() don't work properly Pin
David Crow25-Mar-05 2:10
David Crow25-Mar-05 2:10 
GeneralRe: MFC CString::Delete() don't work properly Pin
toxcct25-Mar-05 2:14
toxcct25-Mar-05 2:14 
GeneralRe: MFC CString::Delete() don't work properly Pin
Mircea Puiu24-Mar-05 22:04
Mircea Puiu24-Mar-05 22:04 

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.