Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. PARAFORMAT2 Structure

PARAFORMAT2 Structure

Scheduled Pinned Locked Moved C / C++ / MFC
question
2 Posts 2 Posters 1 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    Richard_48
    wrote on last edited by
    #1

    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

    J 1 Reply Last reply
    0
    • R Richard_48

      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

      J Offline
      J Offline
      Jeremy Falcon
      wrote on last edited by
      #2

      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.dll

      Windows 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

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups