commit ff61989453d6dfe1398fc8034fb2dfebc8781ca2 parent 661f09c6a7f435862901308629d4018302244461 Author: cfillion <cfillion@users.noreply.github.com> Date: Sat, 20 Aug 2016 19:52:31 -0700 about: hide the caret of all text edit controls on windows Diffstat:
M | src/about.cpp | | | 12 | +++++++++++- |
1 file changed, 11 insertions(+), 1 deletion(-)
diff --git a/src/about.cpp b/src/about.cpp @@ -60,13 +60,23 @@ void About::onInit() m_report = getControl(IDC_REPORT); } -void About::onCommand(const int id, int) +void About::onCommand(const int id, int event) { switch(id) { case IDOK: case IDCANCEL: close(); break; +#ifdef _WIN32 + case IDC_ABOUT: + if(event == EN_SETFOCUS) + HideCaret(m_desc->handle()); + break; + case IDC_REPORT: + if(event == EN_SETFOCUS) + HideCaret(m_report); + break; +#endif default: if(m_links.count(id)) selectLink(id);