assume commctl6 even without manifest

This commit is contained in:
Adam D. Ruppe 2022-03-28 19:01:48 -04:00
parent ab5ff7d9d1
commit 0f5958d42e
1 changed files with 9 additions and 0 deletions

View File

@ -326,6 +326,15 @@ version(Windows) {
static import gdi = core.sys.windows.wingdi;
}
version(Windows) {
version(CRuntime_Microsoft) { // FIXME: mingw?
// assume we want commctrl6 whenever possible since there's really no reason not to
// and this avoids some of the manifest hassle
pragma(linkerDirective, "\"/manifestdependency:type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='*' publicKeyToken='6595b64144ccf1df' language='*'\"");
}
}
// this is a hack to call the original window procedure on native win32 widgets if our event listener thing prevents default.
private bool lastDefaultPrevented;