[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [platform-swt-dev] Old topic: windows theme again
|
Dmmmmy, jdk7 java.exe really do not include the manifest.
The strange point above in my post is not one, eclipse.exe contains a manifest as well.
When NO eclipse, E.g. standalone swt application will failed to active atx of manifest.
swt.internal.OS static code will return -1 at point create atx
I checked it out. we can just use the swt module, fixed as:
int /* long */hModule = OS.GetLibraryHandle();
ACTCTX pActCtx = new ACTCTX();
pActCtx.cbSize = ACTCTX.sizeof;
//ACTCTX_FLAG_HMODULE_VALID 128 0x080
pActCtx.dwFlags = OS.ACTCTX_FLAG_RESOURCE_NAME_VALID | 0x80;
pActCtx.lpResourceName = OS.MANIFEST_RESOURCE_ID;
pActCtx.hModule = hModule;
int /* long */hActCtx = OS.CreateActCtx(pActCtx);
if (hActCtx == -1) {
System.out.println("Failed: " + OS.GetLastError());
}
int /* long */[] lpCookie = new int /* long */[1];
OS.ActivateActCtx(hActCtx, lpCookie);
Would someone kind to log it to eclipse bugs, I always lost my bugs password:)
致敬
向雅
2010/10/13 Grant Gayed
<Grant_Gayed@xxxxxxxxxx>
This is logged as https://bugs.eclipse.org/bugs/show_bug.cgi?id=327476
.
Grant
Hi all,
Long time not play swt, OK, it surprised me.
My encounter some intresting and funny:
Run a swt application in jdk7, with eclipse 3.7M2, the UI ugly king
back:) it really surprised me.
so I switch to eclipse 3.6, still. manifest? should not, swt.i.OS
force load the theme. so why?
and wait, I have jdk6, hah:) OK, the application run in java6, it works
fine.
But wait again, the eclipse self works fine in both jdk.
Does anyone know some secrets about this? through seems google say the
world still fine
致敬
向雅
_______________________________________________
platform-swt-dev mailing list
platform-swt-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/platform-swt-dev
_______________________________________________
platform-swt-dev mailing list
platform-swt-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/platform-swt-dev