05-12-2006, 09:59 AM
On Windows XP, wordpad edit control class is richedit50w. The w at the end means that you must use wide character versions of structures, eg CHARFORMATW.
Note 2:
If you use EM_FINDTEXT, FINDTEXT lpstrText member must point to string that is in shared memory.
Note 2:
If you use EM_FINDTEXT, FINDTEXT lpstrText member must point to string that is in shared memory.