PARAFORMAT2 Structure
-
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 :) RRL
-
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 :) RRL
sveige wrote:
How do I determine if at least the RichEdit 3.0.dll is installed?
From lebans.com...
Version DLL
1.0 Riched32.dll
2.0 Riched20.dll
3.0 Riched20.dll
4.1 Msftedit.dllWindows XP SP1 Includes Rich Edit 4.1, Rich Edit 3.0, and a Rich Edit 1.0 emulator.
Windows XP Includes Rich Edit 3.0 with a Rich Edit 1.0 emulator.
Windows Me Includes Rich Edit 1.0 and 3.0.
Windows 2000 Includes Rich Edit 3.0 with a Rich Edit 1.0 emulator.
Windows NT 4.0 Includes Rich Edit 1.0 and 2.0.
Windows 98 Includes Rich Edit 1.0 and 2.0.
Windows 95 Includes only Rich Edit 1.0. However, Riched20.dll is compatible with Windows 95 and may be installed by an application that requires it.Jeremy Falcon