BUG: Multiple Definitions for EM_CHARFROMPOS & EM_POSFROMCHARLast reviewed: September 29, 1995Article ID: Q137249 |
The information in this article applies to:
SYMPTOMSIf you are using the EM_CHARFROMPOS and EM_POSFROMCHAR messages with a RichEdit control as outlined in the Win32 SDK documentation, and they are not working, it is likely that your application is using incorrect values for EM_CHARFROMPOS and EM_POSFROMCHAR.
CAUSEThe definitions for EM_CHARFROMPOS and EM_POSFROMCHAR in Richedit.h are different from the definitions in Winuser.h.
RESOLUTIONThe programmer needs to use the definitions from Winuser.h as these work correctly. Include Winuser.h before Richedit.h. If these messages still don't work, the message values should be hard-coded to those from Winuser.h.
STATUSMicrosoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.
|
Additional reference words: 1.30 4.00
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |