Microsoft KB Archive/255858

From BetaArchive Wiki
< Microsoft KB Archive
Revision as of 11:36, 21 July 2020 by X010 (talk | contribs) (Text replacement - "&" to "&")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Knowledge Base

PRB: New Behavior of Multiline CJK Rich Edit Controls Under Windows 2000

Article ID: 255858

Article Last Modified on 2/28/2007


  • Microsoft Windows 2000 Server
  • Microsoft Windows 2000 Advanced Server
  • Microsoft Windows 2000 Professional Edition

This article was previously published under Q255858


The display of multiline text in rich edit controls may be truncated when Chinese, Japanese, or Korean fonts are used.


There has been a change in the behavior of rich edit controls under Windows 2000 when Chinese, Japanese, or Korean fonts are used. In earlier versions, there is no spacing between lines. With the intention of increasing readability, lines are now spaced slightly apart. This can truncate displays if the computation of the rectangle for the control does not take this change into account.


The behavior in earlier versions can be recovered; the following code fragment suggests a method:

    ZeroMemory((void*)&pf, sizeof(pf));
    pf.cbSize = sizeof(pf);
    pf.dwMask = PFM_LINESPACING;
    pf.bLineSpacingRule = 4;
    ::SendMessage(m_field.m_hWnd, EM_SETPARAFORMAT, 0, (LPARAM)&pf);


This behavior is by design.

Keywords: kbbug kblocalization kbprb kbvc500fix kbvc600fix KB255858