Home > Back-end >  Of PHPDesigner TSynEdit text for why sometimes normal or abnormal
Of PHPDesigner TSynEdit text for why sometimes normal or abnormal

Time:10-12

Recent VC program text and using the following code to obtain the target window into the dialog box's RichEdit
TCHAR buf [16 * 1024]={0};
: : SendMessage (g_hTargetWnd, WM_GETTEXT, _countof (buf), (LPARAM) buf);
GetDlgItem (IDC_TXTSEND) - & gt; SetWindowText (buf);

For most window, such as notepad, EditPlus window, can get normal text
But for PHP editor PHPDesigner 8.1, I sometimes get normal text, sometimes get a lot of noise, the same content, from PHPDesigner copy to notepad, text, was obtained from the notepad is normal

At first thought it was my program where there is a problem, but then use Spy++ test, found to PHPDesigner 8.1 code window, move and move for many times, can be found that Spy++ get text (" title ") also sometimes normal, sometimes garbled, can confirm that whether it is normal, or gibberish, handle is the same, PHPDesigner 8.1 code window did not do any edit operation,

From the Spy++ code window is TSynEdit type, I don't know why this happens? Is a peculiar, TSynEdit or PHPDesigner peculiar, or for other reasons,

Who can explore a hand

CodePudding user response:

Mostly coding problem,
TSynEdit is a Delphi third-party components, can be sure it is the basic problem, when it runs the background will be a lot of action is kept in dealing with the highlighted text format code, use text message to get it is not, see if there are provide interface TSynEdit export its text,
Lu had
  • Related