The information in this article applies to:
SYMPTOMSText does not appear when an ActiveX control is based on Rich Edit 2.0. CAUSEThe RichEdit20 window proc does not do anything in WM_ERASEBKGND except return the value "1", indicating it has erased the background. The WM_PAINT message handler is supposed to take care of erasing the background. However, the WM_PAINT message handler does not do anything because the update rect is (0,0,0,0). RESOLUTIONThe solution is to invalidate the Rich Edit control's window, and then pass the WM_PAINT message to the windows procedure of the Rich Edit 2.0 control. For example:
STATUSThis behavior is by design. MORE INFORMATION
The MFC CRichEditCtrl class was designed to support the Rich Edit 1.0 control and does not support the Rich Edit 2.0 control. REFERENCES"ActiveX Controls: Subclassing a Windows Control" in the Visual C++ Programmer's Guide. Additional query words:
Keywords : kbActiveX kbCOMt kbCtrlCreate kbMFC kbRichEdit kbVC600 kbVS600 kbDSupport kbGrpMFCATL |
Last Reviewed: November 2, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |