Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [platform-swt-dev] Old topic: windows theme again

see https://bugs.eclipse.org/bugs/show_bug.cgi?id=327476



From: 向雅 <fyaoxy@xxxxxxxxx>
To: "Eclipse Platform SWT component developers list." <platform-swt-dev@xxxxxxxxxxx>
Date: 24/11/2010 07:08 AM
Subject: Re: [platform-swt-dev] Old topic: windows theme again
Sent by: platform-swt-dev-bounces@xxxxxxxxxxx





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




向雅 <fyaoxy@xxxxxxxxx>
Sent by:
platform-swt-dev-bounces@xxxxxxxxxxx

10/07/2010 11:07 PM


Please respond to
"Eclipse Platform SWT component developers list."        <
platform-swt-dev@xxxxxxxxxxx>

To
"Eclipse Platform SWT component developers list." <platform-swt-dev@xxxxxxxxxxx>
cc
Subject
[platform-swt-dev] Old topic: windows theme again







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

_______________________________________________
platform-swt-dev mailing list
platform-swt-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/platform-swt-dev



Back to the top