Fix setting the fonts for wxMSW wxTextCtrl with wxTE_RICH(2) style.
authorVadim Zeitlin <vadim@wxwidgets.org>
Tue, 25 May 2010 21:15:24 +0000 (21:15 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Tue, 25 May 2010 21:15:24 +0000 (21:15 +0000)
commit81fb185e4f837355335c4c8831e1a0c1a1bd1334
treed2526244fdb131a200800cf37f99746594912b52
parentb8ea299a7e88d570be50a05e0c7a80190d9b24b4
Fix setting the fonts for wxMSW wxTextCtrl with wxTE_RICH(2) style.

Using WM_SETFONT seemed to work with rich edit controls but in fact it
doesn't, it only changes the font used by the control initially apparently but
it can be reset later.

Use EM_SETCHARFORMAT which is more reliable.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64394 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
include/wx/msw/textctrl.h
src/msw/textctrl.cpp