BUG: Disabled RTF Displays Wrong Color

ID: Q240886


The information in this article applies to:
  • Microsoft Win32 Software Development Kit (SDK)
  • Microsoft Windows 2000


SYMPTOMS

When a Rich Text Format (RTF) control is disabled, by using EnableWindow(hwnd,FALSE), although the control's background color is set to a color other than the default (by using EM_SETBKGNDCOLOR), the default background color of the control is displayed.


CAUSE

This is caused by a bug in the EnableWindow API function.


RESOLUTION

There are two ways to work around this problem:

  1. Use SetWindowLong to add the WS_DISABLED style.


  2. Use an EM_SETREADONLY or EM_SETOPTIONS message.



STATUS

Microsoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article.

Additional query words:

Keywords : kbWinOS2000 kbWinOS2000bug kbRichEdit kbDSupport
Version : WINDOWS:
Platform : WINDOWS
Issue type : kbbug


Last Reviewed: September 29, 1999
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.