Skip to content

Commit

Permalink
Bug 1650: Keywords that link to help page are underlined in generated…
Browse files Browse the repository at this point in the history
… code on Windows 10 version 1803

https://winscp.net/tracker/1650
(cherry picked from commit 8c45a97)

Source commit: 29d6d2658b12c57049fd6d082a5c2483e55c04e4
  • Loading branch information
martinprikryl committed May 25, 2018
1 parent 07e8aa6 commit 9906fca
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
7 changes: 7 additions & 0 deletions source/windows/GUITools.cpp
Expand Up @@ -21,6 +21,7 @@
#include <Glyphs.h>
#include <PasTools.hpp>
#include <VCLCommon.h>
#include <WinApi.h>
#include <Vcl.ScreenTips.hpp>

#include "Animations96.h"
Expand Down Expand Up @@ -1586,6 +1587,12 @@ void __fastcall TNewRichEdit::CreateParams(TCreateParams & Params)
CreateSubClass(Params, MSFTEDIT_CLASS);
}
//---------------------------------------------------------------------------
void __fastcall TNewRichEdit::CreateWnd()
{
TRichEdit::CreateWnd();
SendMessage(Handle, EM_SETEDITSTYLEEX, 0, SES_EX_HANDLEFRIENDLYURL);
}
//---------------------------------------------------------------------------
void __fastcall TNewRichEdit::DestroyWnd()
{
TRichEdit::DestroyWnd();
Expand Down
1 change: 1 addition & 0 deletions source/windows/GUITools.h
Expand Up @@ -158,6 +158,7 @@ class TNewRichEdit : public TRichEdit

protected:
virtual void __fastcall CreateParams(TCreateParams & Params);
virtual void __fastcall CreateWnd();
virtual void __fastcall DestroyWnd();

private:
Expand Down
4 changes: 4 additions & 0 deletions source/windows/WinApi.h
Expand Up @@ -188,4 +188,8 @@ class IListView_Win7 : public IOleWindow
};
//---------------------------------------------------------------------------
//---------------------------------------------------------------------------
#define EM_SETEDITSTYLEEX (WM_USER + 275)
#define SES_EX_HANDLEFRIENDLYURL (0x100)
//---------------------------------------------------------------------------
//---------------------------------------------------------------------------
#endif // WinApiH

0 comments on commit 9906fca

Please sign in to comment.