Merge branch 'samples-dpi-v2-aware'

Build all samples, not just one of them, as per-monitor DPI v2 programs
under MSW and minor cleanup of the samples .rc files.

See https://github.com/wxWidgets/wxWidgets/pull/2557
This commit is contained in:
Vadim Zeitlin 2021-10-25 13:16:55 +02:00
commit 3d5664cabe
16 changed files with 3 additions and 20 deletions

View File

@ -8,7 +8,6 @@
<headers>anitest.h</headers>
<wx-lib>core</wx-lib>
<wx-lib>base</wx-lib>
<win32-res>../sample.rc</win32-res>
</exe>
<wx-data id="catalog">

View File

@ -1,2 +0,0 @@
#include "wx/msw/wx.rc"

View File

@ -7,7 +7,6 @@
<sources>collpane.cpp</sources>
<wx-lib>core</wx-lib>
<wx-lib>base</wx-lib>
<win32-res>../sample.rc</win32-res>
</exe>
</makefile>

View File

@ -8,7 +8,6 @@
<headers>mymodels.h</headers>
<wx-lib>core</wx-lib>
<wx-lib>base</wx-lib>
<win32-res>../sample.rc</win32-res>
</exe>
</makefile>

View File

@ -6,6 +6,5 @@
<sources>popup.cpp</sources>
<wx-lib>core</wx-lib>
<wx-lib>base</wx-lib>
<win32-res>../sample.rc</win32-res>
</exe>
</makefile>

View File

@ -17,7 +17,6 @@
<wx-lib>propgrid</wx-lib>
<wx-lib>core</wx-lib>
<wx-lib>base</wx-lib>
<win32-res>../sample.rc</win32-res>
</exe>
</makefile>

View File

@ -10,7 +10,6 @@
<wx-lib>ribbon</wx-lib>
<wx-lib>core</wx-lib>
<wx-lib>base</wx-lib>
<win32-res>../sample.rc</win32-res>
</exe>
</makefile>

View File

@ -12,7 +12,6 @@
<wx-lib>core</wx-lib>
<wx-lib>xml</wx-lib>
<wx-lib>base</wx-lib>
<win32-res>../sample.rc</win32-res>
</exe>
</makefile>

View File

@ -25,6 +25,9 @@ sample ICON "sample.ico"
// for more information)
#define wxUSE_NO_MANIFEST 0
// To get DPI change events, we need to opt in into per monitor DPI support.
#define wxUSE_DPI_AWARE_MANIFEST 2
// this is not always needed but doesn't hurt (except making the executable
// very slightly larger): this file contains the standard icons, cursors, ...
#include "wx/msw/wx.rc"

View File

@ -9,7 +9,6 @@
<wx-lib>media</wx-lib>
<wx-lib>core</wx-lib>
<wx-lib>base</wx-lib>
<win32-res>../sample.rc</win32-res>
</exe>
<wx-data id="data">

View File

@ -1,6 +1,3 @@
// To get DPI change events, we need to opt in into per monitor DPI support.
#define wxUSE_DPI_AWARE_MANIFEST 2
#include "../sample.rc"
new RCDATA "bitmaps/new.png"

View File

@ -8,7 +8,6 @@
<headers>treetest.h</headers>
<wx-lib>core</wx-lib>
<wx-lib>base</wx-lib>
<win32-res>../sample.rc</win32-res>
</exe>
</makefile>

View File

@ -8,7 +8,6 @@
<headers>validate.h</headers>
<wx-lib>core</wx-lib>
<wx-lib>base</wx-lib>
<win32-res>../sample.rc</win32-res>
</exe>
</makefile>

View File

@ -12,7 +12,6 @@
<wx-lib>stc</wx-lib>
<wx-lib>core</wx-lib>
<wx-lib>base</wx-lib>
<win32-res>../sample.rc</win32-res>
<if cond="OUT_OF_TREE_MAKEFILES=='0'">
<sys-lib>$(LIB_SCINTILLA)</sys-lib>
</if>

View File

@ -59,7 +59,6 @@
<headers>widgets.h itemcontainer.h</headers>
<wx-lib>core</wx-lib>
<wx-lib>base</wx-lib>
<win32-res>../sample.rc</win32-res>
</exe>
</makefile>

View File

@ -1,3 +0,0 @@
mondrian ICON "sample.ico"
#include "wx/msw/wx.rc"