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. Questions about EM_SETWORDBREAKPROC message and EDITWORDBREAKPROCA function

Questions about EM_SETWORDBREAKPROC message and EDITWORDBREAKPROCA function

Scheduled Pinned Locked Moved C / C++ / MFC
help
22 Posts 3 Posters 7 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.
  • F ForNow

    Richard Siad the wordline break is invoked only what he tried to resize it i.e. once It has been displayed and user narrows the richedit If there is way to invoke the wordlinebreak proc before the display that would be helpful thanks

    L Offline
    L Offline
    Lost User
    wrote on last edited by
    #21

    I am not aware of any way you could do this, since there are no words that need breaking until they are displayed. You may need to consider other options, both of which require you to do all the display handling yourself: 1. Make your display a fixed width based on the font you are using and the amount of data you wish to display. 2. Rebuild the entire display whenever the Window is resized. It may be possible to implement the above by subclassing the RichEdit control, although I have never done that in MFC.

    F 1 Reply Last reply
    0
    • L Lost User

      I am not aware of any way you could do this, since there are no words that need breaking until they are displayed. You may need to consider other options, both of which require you to do all the display handling yourself: 1. Make your display a fixed width based on the font you are using and the amount of data you wish to display. 2. Rebuild the entire display whenever the Window is resized. It may be possible to implement the above by subclassing the RichEdit control, although I have never done that in MFC.

      F Offline
      F Offline
      ForNow
      wrote on last edited by
      #22

      Richard My display is fixed width as it is Courier new I know that exact number of characters in the width of a line (wonder if ShowWindow(SW_HIDE) would drive edit editwordbreakproc) I am just wondering if there is another way and causes line breaks other than 0x0a, 0x0d, 0x0c I have to think about this

      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