Kirill K. Smirnov : winhelp: Pointer coordinates are relative to richedit text window, not the main window.