Click here to Skip to main content
15,888,064 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: copying an array of bytes to another array Pin
RChin3-Mar-06 5:30
RChin3-Mar-06 5:30 
GeneralRe: copying an array of bytes to another array Pin
David Crow3-Mar-06 5:49
David Crow3-Mar-06 5:49 
GeneralRe: copying an array of bytes to another array Pin
chaitanya223-Mar-06 5:55
chaitanya223-Mar-06 5:55 
GeneralRe: copying an array of bytes to another array Pin
David Crow3-Mar-06 6:28
David Crow3-Mar-06 6:28 
GeneralRe: copying an array of bytes to another array Pin
chaitanya223-Mar-06 5:51
chaitanya223-Mar-06 5:51 
QuestionRe: copying an array of bytes to another array Pin
David Crow3-Mar-06 6:05
David Crow3-Mar-06 6:05 
AnswerRe: copying an array of bytes to another array Pin
chaitanya223-Mar-06 6:09
chaitanya223-Mar-06 6:09 
QuestionPARAFORMAT2 Structure Pin
Richard_483-Mar-06 5:10
Richard_483-Mar-06 5:10 
Hello all,

Here is my code:

void CMSMCitationView::OnMsmformattingJustifytext()
{

//Call the PARAFORMAT2 Structure to mod the paragraph
// format
PARAFORMAT2 pf;

// Modify the paragraph format so that the text
//is justified.
pf.cbSize = sizeof(PARAFORMAT2);
pf.dwMask = PFM_ALIGNMENT;
pf.wAlignment = PFA_JUSTIFY;
CRichEditView::SetParaFormat(pf);

// Verify the settings.
#ifdef _DEBUG
CRichEditView::GetParaFormatSelection();
ASSERT(pf.dwMask&PFM_ALIGNMENT);
ASSERT(pf.wAlignment == PFA_JUSTIFY);
#endif


}

Here is more info about this:
Code compiles and links. When Menu Item (Justify Text) is selected, nothing happens. When other values are used in place of PFA_JUSTIFY, such as PFA_CENTER, center text is the result. Documentation says that if Rich Edit 3.0 is not installed, value PFA_JUSTIFY will align with the left margin. This is my result with PFA_JUSTIFY. I am running Win XP Pro with all the updates installed. Should have at least Rich Edit 3.0.dll already installed. Question is why won't PFA_JUSTIFY do it's thing? How do I determine if at least the RichEdit 3.0.dll is installed?

Thanks for your inputs,

Sveige Smile | :)


RRL
AnswerRe: PARAFORMAT2 Structure Pin
Jeremy Falcon3-Mar-06 7:26
professionalJeremy Falcon3-Mar-06 7:26 
QuestionStack overflows Pin
Waldermort3-Mar-06 4:14
Waldermort3-Mar-06 4:14 
AnswerRe: Stack overflows Pin
David Crow3-Mar-06 4:33
David Crow3-Mar-06 4:33 
GeneralRe: Stack overflows Pin
Waldermort3-Mar-06 4:57
Waldermort3-Mar-06 4:57 
QuestionRe: Stack overflows Pin
David Crow3-Mar-06 5:56
David Crow3-Mar-06 5:56 
AnswerRe: Stack overflows Pin
Waldermort3-Mar-06 6:18
Waldermort3-Mar-06 6:18 
QuestionRe: Stack overflows Pin
David Crow3-Mar-06 6:35
David Crow3-Mar-06 6:35 
AnswerRe: Stack overflows Pin
Waldermort3-Mar-06 15:59
Waldermort3-Mar-06 15:59 
GeneralRe: Stack overflows Pin
Waldermort3-Mar-06 5:53
Waldermort3-Mar-06 5:53 
QuestionRe: Stack overflows Pin
David Crow3-Mar-06 5:59
David Crow3-Mar-06 5:59 
AnswerRe: Stack overflows Pin
Waldermort3-Mar-06 6:28
Waldermort3-Mar-06 6:28 
Questionstd c++ structures Pin
Peter Charlesworth3-Mar-06 3:29
Peter Charlesworth3-Mar-06 3:29 
AnswerRe: std c++ structures Pin
Cedric Moonen3-Mar-06 3:38
Cedric Moonen3-Mar-06 3:38 
GeneralRe: std c++ structures Pin
Peter Charlesworth3-Mar-06 12:02
Peter Charlesworth3-Mar-06 12:02 
AnswerRe: std c++ structures Pin
Maximilien3-Mar-06 3:39
Maximilien3-Mar-06 3:39 
GeneralRe: std c++ structures Pin
Peter Charlesworth3-Mar-06 12:06
Peter Charlesworth3-Mar-06 12:06 
AnswerRe: std c++ structures Pin
toxcct3-Mar-06 3:49
toxcct3-Mar-06 3:49 

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.