Fix building with wxUSE_RICHEDIT=0
| ... | ... | @@ -1784,6 +1784,8 @@ wxPoint wxTextCtrl::DoPositionToCoords(long pos) const |
| 1784 | 1784 | LRESULT rc = ::SendMessage(GetHwnd(), EM_POSFROMCHAR, (WPARAM)&pt, pos);
|
| 1785 | 1785 | if ( rc != -1 )
|
| 1786 | 1786 | return wxPoint(pt.x, pt.y);
|
| 1787 | + |
|
| 1788 | + return wxDefaultPosition;
|
|
| 1787 | 1789 | }
|
| 1788 | 1790 | else
|
| 1789 | 1791 | #endif // wxUSE_RICHEDIT
|
| ... | ... | @@ -1852,8 +1854,6 @@ wxPoint wxTextCtrl::DoPositionToCoords(long pos) const |
| 1852 | 1854 | return wxPoint(static_cast<short>(LOWORD(rc)),
|
| 1853 | 1855 | static_cast<short>(HIWORD(rc)));
|
| 1854 | 1856 | }
|
| 1855 | - |
|
| 1856 | - return wxDefaultPosition;
|
|
| 1857 | 1857 | }
|
| 1858 | 1858 | |
| 1859 | 1859 | |
| ... | ... | @@ -2922,6 +2922,8 @@ void wxTextCtrl::MSWSetRichZoom() |
| 2922 | 2922 | ::SendMessage(GetHWND(), EM_SETZOOM, (WPARAM)num, (LPARAM)denom);
|
| 2923 | 2923 | }
|
| 2924 | 2924 | |
| 2925 | +#endif // wxUSE_RICHEDIT
|
|
| 2926 | + |
|
| 2925 | 2927 | void wxTextCtrl::MSWSetDarkOrLightMode(SetMode setmode)
|
| 2926 | 2928 | {
|
| 2927 | 2929 | wxTextCtrlBase::MSWSetDarkOrLightMode(setmode);
|
| ... | ... | @@ -2998,6 +3000,8 @@ void wxTextCtrl::MSWSetDarkOrLightMode(SetMode setmode) |
| 2998 | 3000 | #endif
|
| 2999 | 3001 | }
|
| 3000 | 3002 | |
| 3003 | +#if wxUSE_RICHEDIT
|
|
| 3004 | + |
|
| 3001 | 3005 | void wxTextCtrl::MSWUpdateFontOnDPIChange(const wxSize& newDPI)
|
| 3002 | 3006 | {
|
| 3003 | 3007 | // Don't use MSWUpdateFontOnDPIChange for the rich edit controls, they
|
—
View it on GitLab.
You're receiving this email because of your account on gitlab.com. Manage all notifications · Help