On Mon, 20 Apr 2026 08:30:38 +0200 Paris Rossano wrote:
PR> I searched for my issue, and it was due to |WIN32_LEAN_AND_MEAN|, which was
PR> silently lying in my project's preprocessor definitions since I added
PR> |wxWebView| to my application.
PR> I simply removed |WIN32_LEAN_AND_MEAN|, which is no longer needed.
I see, defining WIN32_LEAN_AND_MEAN means that lesser used headers are not
included by windows.h, which results in these symbols not being defined
after its inclusion, but being defined later when the header defining them
is included directly.
I think we can avoid this problem by moving the definitions of "missing"
(not really in this case) from wx/msw/missing.h to webview_missing.h, as I
just did in
https://github.com/wxWidgets/wxWidgets/pull/26400 which, I
think, should avoid the issue even if you restore WIN32_LEAN_AND_MEAN.
Thanks for finding the underlying reason for this problem,