[Git][wxwidgets/wxwidgets][master] Fix building with wxUSE_RICHEDIT=0

2 views
Skip to first unread message

Vadim Zeitlin (@_VZ_)

unread,
Jul 14, 2026, 11:58:34 PM (7 days ago) Jul 14
to wx-commi...@googlegroups.com

Vadim Zeitlin pushed to branch master at wxWidgets / wxWidgets

Commits:

  • e56922d8
    by Steve Cornett at 2026-07-14T20:44:22-07:00
    Fix building with wxUSE_RICHEDIT=0
    

1 changed file:

Changes:

  • src/msw/textctrl.cpp
    ... ... @@ -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 Notification message regarding https://gitlab.com/wxwidgets/wxwidgets/-/commit/e56922d84700a0fbe90ccb21d5b12f5fce7b62be at 1784087910

Reply all
Reply to author
Forward
0 new messages