Click here to Skip to main content
15,887,376 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionconverting any base to decimal base 10 Pin
Member 382253219-Nov-09 13:36
Member 382253219-Nov-09 13:36 
AnswerRe: converting any base to decimal base 10 Pin
«_Superman_»19-Nov-09 14:11
professional«_Superman_»19-Nov-09 14:11 
GeneralRe: converting any base to decimal base 10 Pin
Member 382253227-Nov-09 14:48
Member 382253227-Nov-09 14:48 
QuestionWhat do you use CMFCRibbonBar::SetKeyboardNavigationLevel for? Pin
Dale Haessel19-Nov-09 6:34
Dale Haessel19-Nov-09 6:34 
QuestionCRichTextCtrl maintaining paragraph justification Pin
maycockt19-Nov-09 4:51
maycockt19-Nov-09 4:51 
QuestionRe: CRichTextCtrl maintaining paragraph justification Pin
Nuri Ismail19-Nov-09 5:25
Nuri Ismail19-Nov-09 5:25 
AnswerRe: CRichTextCtrl maintaining paragraph justification Pin
maycockt19-Nov-09 21:38
maycockt19-Nov-09 21:38 
GeneralRe: CRichTextCtrl maintaining paragraph justification Pin
Nuri Ismail19-Nov-09 21:53
Nuri Ismail19-Nov-09 21:53 
Hi,

maycockt wrote:
The hwndEdit you mention is, I assume, m_hWnd of the edit control, e.g. MyRichEditCtrl.m_hWnd?


Yes, it is the m_hWnd of your edit control.

This is from your code:
PARAFORMAT2 pf; // !!! You use PARAFORMAT2

// !!! But here you use the size of PARAFORMAT. Change the PARAFORMAT to PARAFORMAT2
pf.cbSize = sizeof(PARAFORMAT); 

pf.dwMask = PFM_ALIGNMENT;
pf.wAlignment = PFA_JUSTIFY;
BOOL bOK = m_rtfCtrl.SetParaFormat(pf);


Try with this change. If this don't solve your problem, then you have to paste your MyStreamInCallback function because there are some tricks about this callback for UNICODE builds. Smile | :)

Regards,
Nuri Ismail
GeneralRe: CRichTextCtrl maintaining paragraph justification Pin
maycockt19-Nov-09 22:01
maycockt19-Nov-09 22:01 
GeneralRe: CRichTextCtrl maintaining paragraph justification Pin
Nuri Ismail19-Nov-09 22:04
Nuri Ismail19-Nov-09 22:04 
Questioneveryone, help me, please! Pin
nenfa19-Nov-09 3:59
nenfa19-Nov-09 3:59 
AnswerRe: everyone, help me, please! Pin
lxkjlzz19-Nov-09 15:57
lxkjlzz19-Nov-09 15:57 
GeneralRe: everyone, help me, please! Pin
Tim Craig19-Nov-09 18:15
Tim Craig19-Nov-09 18:15 
GeneralRe: everyone, help me, please! Pin
nenfa19-Nov-09 18:19
nenfa19-Nov-09 18:19 
Questiona problem about release and debug Pin
vctrlao19-Nov-09 3:09
vctrlao19-Nov-09 3:09 
AnswerRe: a problem about release and debug Pin
Nelek19-Nov-09 3:35
protectorNelek19-Nov-09 3:35 
AnswerRe: a problem about release and debug Pin
Rajesh R Subramanian19-Nov-09 3:53
professionalRajesh R Subramanian19-Nov-09 3:53 
AnswerRe: a problem about release and debug Pin
loyal ginger19-Nov-09 3:57
loyal ginger19-Nov-09 3:57 
QuestionDirectoryAttributes.. Pin
kumar sanghvi19-Nov-09 2:46
kumar sanghvi19-Nov-09 2:46 
AnswerRe: DirectoryAttributes.. Pin
Michael Schubert19-Nov-09 2:51
Michael Schubert19-Nov-09 2:51 
GeneralRe: DirectoryAttributes.. Pin
kumar sanghvi19-Nov-09 3:08
kumar sanghvi19-Nov-09 3:08 
QuestionRe: DirectoryAttributes.. Pin
David Crow19-Nov-09 3:33
David Crow19-Nov-09 3:33 
GeneralRe: DirectoryAttributes.. Pin
Rajesh R Subramanian19-Nov-09 3:58
professionalRajesh R Subramanian19-Nov-09 3:58 
GeneralRe: DirectoryAttributes.. Pin
Michael Schubert19-Nov-09 4:31
Michael Schubert19-Nov-09 4:31 
QuestionFind out if CString type is available in a project Pin
sashoalm19-Nov-09 2:30
sashoalm19-Nov-09 2:30 

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.